diff options
author | Tom Tromey <tromey@redhat.com> | 2004-09-24 15:41:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2004-09-24 15:41:17 +0000 |
commit | 0a08595abd074ca5a09c562f8fad02a2365adab3 (patch) | |
tree | f84e025769ec4ded678efa68436f8e669f10abdf /libjava | |
parent | 90424847a67993e2cb9b0832371f45b2b64d9048 (diff) | |
download | gcc-0a08595abd074ca5a09c562f8fad02a2365adab3.zip gcc-0a08595abd074ca5a09c562f8fad02a2365adab3.tar.gz gcc-0a08595abd074ca5a09c562f8fad02a2365adab3.tar.bz2 |
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
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr16789.java | 15 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/pr16789.out | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index db9463e..4000985 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-09-24 Tom Tromey <tromey@redhat.com> + + PR java/16789: + * testsuite/libjava.lang/pr16789.out: New file. + * testsuite/libjava.lang/pr16789.java: New file. + 2004-09-24 Andrew Haley <aph@redhat.com> PR java/16927 diff --git a/libjava/testsuite/libjava.lang/pr16789.java b/libjava/testsuite/libjava.lang/pr16789.java new file mode 100644 index 0000000..64c43f3 --- /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 0000000..c508d53 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr16789.out @@ -0,0 +1 @@ +false |