summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-22 22:22:07 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-22 22:22:07 +0000
commitbdde313bea617437ea1be433b286df5d8cf292bd (patch)
treefd8c9839f762e3f359dbb3f0625a4d7dc02eaf73 /libjava/testsuite/libjava.compile
parenta7d1dd38c0af5ed884a19a977aa75d5a5f152232 (diff)
downloadppe42-gcc-bdde313bea617437ea1be433b286df5d8cf292bd.tar.gz
ppe42-gcc-bdde313bea617437ea1be433b286df5d8cf292bd.zip
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.compile/PR232B.java: Additional PR gcj/232 test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34092 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/PR232B.java15
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 00000000000..0c126531d67
--- /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();
+ }
+ }
+};
OpenPOWER on IntegriCloud