* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git] / libjava / testsuite / libjava.lang / stringconst2.java
blobc64bba4dd46b96db69bc8b23f9e5862cf361d808
1 // Test to make sure a string constant is correctly initialized.
3 import java.lang.reflect.*;
5 public class stringconst2
7 public static final String q = "zardoz";
9 public static void main (String[] args)
11 try
13 Class k = Class.forName ("stringconst2");
14 Field f = k.getField ("q");
15 System.out.println (f.get (null));
17 catch (Throwable t)
19 t.printStackTrace();