diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 03:16:01 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 03:16:01 +0000 |
| commit | 824d62560569807dc8392db1b68b6f6e42adffeb (patch) | |
| tree | 49037d0988c7bc0c66b5a947335476e9e4e3f70a /libjava/testsuite | |
| parent | bd5edd917961b5bcde5c4b9c20439f6ab10cf656 (diff) | |
| download | ppe42-gcc-824d62560569807dc8392db1b68b6f6e42adffeb.tar.gz ppe42-gcc-824d62560569807dc8392db1b68b6f6e42adffeb.zip | |
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz>
Test for PR gcj/232:
* libjava.compile/PR232.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34070 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
| -rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | libjava/testsuite/libjava.compile/PR232.java | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index bad4daa2315..891d948feb9 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-05-22 Bryce McKinlay <bryce@albatross.co.nz> + + Test for PR gcj/232: + * libjava.compile/PR232.java: New file. + 2000-05-18 Tom Tromey <tromey@cygnus.com> * lib/libjava.exp (bytecompile_file): Use exec, not system. diff --git a/libjava/testsuite/libjava.compile/PR232.java b/libjava/testsuite/libjava.compile/PR232.java new file mode 100644 index 00000000000..516b0ed1f6c --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR232.java @@ -0,0 +1,16 @@ +// Use of a "static final String" as a monitor causes ICE +// in jc1 (20000520) +// +// Program received signal SIGSEGV, Segmentation fault. +// put_decl_node (node=0x0) at ../../../gcc/java/lang.c:413 +// 413 if (TREE_CODE (node) == POINTER_TYPE) + +class PR232 +{ + static final String lock= "LOCK"; + + void a() + { + synchronized(lock) {} + } +}; |

