diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile/final_assignment_check.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/final_assignment_check.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/final_assignment_check.java b/libjava/testsuite/libjava.compile/final_assignment_check.java new file mode 100644 index 0000000..418fd91 --- /dev/null +++ b/libjava/testsuite/libjava.compile/final_assignment_check.java @@ -0,0 +1,12 @@ +class f { + final static char c = 3; + final static byte b = 0.1; + final static short s = 3.5f; + final static int i = 4L; + final static long x = 2.5; + final static float y = 2.6; + final static String S = new Object (); + void foo () { + final int i = 2.1; + } +} |