source: trunk/gcc/libjava/testsuite/libjava.compile/PR232.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 354 bytes
Line 
1// Use of a "static final String" as a monitor causes ICE
2// in jc1 (20000520)
3//
4// Program received signal SIGSEGV, Segmentation fault.
5// put_decl_node (node=0x0) at ../../../gcc/java/lang.c:413
6// 413 if (TREE_CODE (node) == POINTER_TYPE)
7
8class PR232
9{
10 static final String lock= "LOCK";
11
12 void a()
13 {
14 synchronized(lock) {}
15 }
16};
Note: See TracBrowser for help on using the repository browser.