From 8f5c8c72db2d9180c27925901920a952d0f596d1 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 22 May 2000 22:22:07 +0000 Subject: re GNATS gcj/232 (segmentation violation at except.c:2180) 2000-05-22 Bryce McKinlay * libjava.compile/PR232B.java: Additional PR gcj/232 test. From-SVN: r34092 --- libjava/testsuite/ChangeLog | 4 ++++ libjava/testsuite/libjava.compile/PR232B.java | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR232B.java (limited to 'libjava/testsuite') diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 8fd4bd5..0da1a9c 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-05-22 Bryce McKinlay + + * libjava.compile/PR232B.java: Additional PR gcj/232 test. + 2000-05-22 Tom Tromey * libjava.compile/PR235.java: New file. For PR gcj/235. 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(); + } + } +}; -- cgit v1.1