From: Tom Tromey Date: Fri, 24 Sep 2004 15:41:17 +0000 (+0000) Subject: re PR java/16789 (ICE in force_evaluation_order() on valid code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a08595abd074ca5a09c562f8fad02a2365adab3;p=gcc.git 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 --- 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