re PR java/16789 (ICE in force_evaluation_order() on valid code)
authorTom Tromey <tromey@redhat.com>
Fri, 24 Sep 2004 15:41:17 +0000 (15:41 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 24 Sep 2004 15:41:17 +0000 (15:41 +0000)
PR java/16789:
* testsuite/libjava.lang/pr16789.out: New file.
* testsuite/libjava.lang/pr16789.java: New file.

From-SVN: r88046

libjava/ChangeLog
libjava/testsuite/libjava.lang/pr16789.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/pr16789.out [new file with mode: 0644]

index db9463e609a3bc08dcf38743913a367fbb6c86c4..40009856bee792f40f651a5cbb5883ca1c5e9429 100644 (file)
@@ -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 (file)
index 0000000..64c43f3
--- /dev/null
@@ -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 (file)
index 0000000..c508d53
--- /dev/null
@@ -0,0 +1 @@
+false