diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-06 15:30:57 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-06 15:30:57 +0000 |
commit | 85d7292bb7741cb3130fc5575e11b0170620e3d8 (patch) | |
tree | fb11cd46d86af9f05e5e8e36936f00538a6f5c0e /libjava/testsuite | |
parent | 0d7998f015ea74afa9b189b655ef9efd0c3685c2 (diff) | |
download | gcc-85d7292bb7741cb3130fc5575e11b0170620e3d8.tar.gz |
For PR java/14853:
* testsuite/libjava.compile/PR14853.java: New file.
* testsuite/libjava.compile/PR14853.xfail: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-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 |