gcc/libjava/testsuite/libjava.compile/PR232.java
Bryce McKinlay f5f67fb58c Test for PR gcj/232:
2000-05-22  Bryce McKinlay  <bryce@albatross.co.nz>

        Test for PR gcj/232:
        * libjava.compile/PR232.java: New file.

From-SVN: r34070
2000-05-22 04:16:01 +01:00

17 lines
354 B
Java

// 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) {}
}
};