aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR232.java
blob: 516b0ed1f6cc754b431d23b2abf9125749b183fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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) {}
  }
};