diff options
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 bad4daa..891d948 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 0000000..516b0ed --- /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) {} + } +}; |
