From: Tom Tromey Date: Fri, 7 Jul 2000 20:51:48 +0000 (+0000) Subject: stringconst2.out: New file. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=261985c30c196783d037149572b01af0e769a137;p=platform%2Fupstream%2Fgcc.git stringconst2.out: New file. * libjava.lang/stringconst2.out: New file. * libjava.lang/stringconst2.java: New file. From-SVN: r34909 --- diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 6fb54e8..9cabc13 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-07-07 Tom Tromey + + * libjava.lang/stringconst2.out: New file. + * libjava.lang/stringconst2.java: New file. + 2000-06-23 Tom Tromey For PR gcj/260: diff --git a/libjava/testsuite/libjava.lang/stringconst2.java b/libjava/testsuite/libjava.lang/stringconst2.java new file mode 100644 index 0000000..f33ee9c --- /dev/null +++ b/libjava/testsuite/libjava.lang/stringconst2.java @@ -0,0 +1,21 @@ +// Test to make sure a string constant is correctly initialized. + +import java.lang.reflect.*; + +public class stringconst2 +{ + public static final String q = "zardoz"; + + public static void main (String[] args) + { + try + { + Class k = Class.forName ("stringconst2"); + Field f = k.getField ("q"); + System.out.println (f.get (null)); + } + catch (Throwable _) + { + } + } +} diff --git a/libjava/testsuite/libjava.lang/stringconst2.out b/libjava/testsuite/libjava.lang/stringconst2.out new file mode 100644 index 0000000..1f0ac89 --- /dev/null +++ b/libjava/testsuite/libjava.lang/stringconst2.out @@ -0,0 +1 @@ +zardoz