diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR232B.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR232B.java b/libjava/testsuite/libjava.compile/PR232B.java new file mode 100644 index 0000000..0c12653 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR232B.java @@ -0,0 +1,15 @@ +// This triggers a failure when compiling from bytecode (only) with 20000519 + +public class PR232B +{ + private static Object lock = new Object(); + private static PR232B instance = null; + + public void a() + { + synchronized(lock) + { + instance = new PR232B(); + } + } +}; |