From 0a08595abd074ca5a09c562f8fad02a2365adab3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 24 Sep 2004 15:41:17 +0000 Subject: [PATCH] re PR java/16789 (ICE in force_evaluation_order() on valid code) PR java/16789: * testsuite/libjava.lang/pr16789.out: New file. * testsuite/libjava.lang/pr16789.java: New file. From-SVN: r88046 --- libjava/ChangeLog | 6 ++++++ libjava/testsuite/libjava.lang/pr16789.java | 15 +++++++++++++++ libjava/testsuite/libjava.lang/pr16789.out | 1 + 3 files changed, 22 insertions(+) create mode 100644 libjava/testsuite/libjava.lang/pr16789.java create mode 100644 libjava/testsuite/libjava.lang/pr16789.out diff --git a/libjava/ChangeLog b/libjava/ChangeLog index db9463e609a..40009856bee 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-09-24 Tom Tromey + + PR java/16789: + * testsuite/libjava.lang/pr16789.out: New file. + * testsuite/libjava.lang/pr16789.java: New file. + 2004-09-24 Andrew Haley PR java/16927 diff --git a/libjava/testsuite/libjava.lang/pr16789.java b/libjava/testsuite/libjava.lang/pr16789.java new file mode 100644 index 00000000000..64c43f30417 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr16789.java @@ -0,0 +1,15 @@ +// gcj used to generate incorrect bytecode for +// staticMethod().staticMethod() +public class pr16789 +{ + public void foo() + { + System.out.println(Thread.currentThread().holdsLock(this)); + } + + public static void main(String[] args) + { + new pr16789().foo(); + } +} + diff --git a/libjava/testsuite/libjava.lang/pr16789.out b/libjava/testsuite/libjava.lang/pr16789.out new file mode 100644 index 00000000000..c508d5366f7 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr16789.out @@ -0,0 +1 @@ +false -- 2.30.2