diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR14853.java | 17 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR14853.xfail | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR14853.java b/libjava/testsuite/libjava.compile/PR14853.java new file mode 100644 index 00000000000..a800c52e3cf --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR14853.java @@ -0,0 +1,17 @@ +class tt +{ + static final tt tt1 = new tt(); + tt() + { + } +} + +public class PR14853 +{ + public static void main (String[] args) + { + // This is an invalid assignment. gcj would get confused in + // definite assignment when compiling to object code. + tt.tt1 = new tt(); + } +} diff --git a/libjava/testsuite/libjava.compile/PR14853.xfail b/libjava/testsuite/libjava.compile/PR14853.xfail new file mode 100644 index 00000000000..e3b083b1fa5 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR14853.xfail @@ -0,0 +1 @@ +shouldfail |