diff options
Diffstat (limited to 'libjava/testsuite/libjava.lang')
-rw-r--r-- | libjava/testsuite/libjava.lang/PR5057.java | 16 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/PR5057.out | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/PR5057.java b/libjava/testsuite/libjava.lang/PR5057.java new file mode 100644 index 0000000..590ffdf --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR5057.java @@ -0,0 +1,16 @@ +/* Test to make sure <clinit> is generated correctly. */ + +public class PR5057 +{ + public static int x; + + static + { + x = 72; + } + + public static void main (String[] args) + { + System.out.println (x); + } +} diff --git a/libjava/testsuite/libjava.lang/PR5057.out b/libjava/testsuite/libjava.lang/PR5057.out new file mode 100644 index 0000000..ea70ce0 --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR5057.out @@ -0,0 +1 @@ +72 |