aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-05-22 22:22:07 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-05-22 23:22:07 +0100
commit8f5c8c72db2d9180c27925901920a952d0f596d1 (patch)
treefd8c9839f762e3f359dbb3f0625a4d7dc02eaf73 /libjava/testsuite/libjava.compile
parent276c771bdf6b625d2cf1747deb04d85a5a41bee7 (diff)
downloadgcc-8f5c8c72db2d9180c27925901920a952d0f596d1.zip
gcc-8f5c8c72db2d9180c27925901920a952d0f596d1.tar.gz
gcc-8f5c8c72db2d9180c27925901920a952d0f596d1.tar.bz2
re GNATS gcj/232 (segmentation violation at except.c:2180)
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/PR232B.java: Additional PR gcj/232 test. From-SVN: r34092
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 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();
+ }
+ }
+};