* libjava.lang/stringconst2.out: New file.
* libjava.lang/stringconst2.java: New file.
From-SVN: r34909
+2000-07-07 Tom Tromey <tromey@cygnus.com>
+
+ * libjava.lang/stringconst2.out: New file.
+ * libjava.lang/stringconst2.java: New file.
+
2000-06-23 Tom Tromey <tromey@cygnus.com>
For PR gcj/260:
--- /dev/null
+// 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 _)
+ {
+ }
+ }
+}