re PR java/3731 (gcj should generate class init code for instanceof)
authorJeff Sturm <jsturm@one-point.com>
Thu, 19 Jul 2001 14:03:08 +0000 (14:03 +0000)
committerJeff Sturm <jsturm@gcc.gnu.org>
Thu, 19 Jul 2001 14:03:08 +0000 (14:03 +0000)
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.

From-SVN: r44151

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

index 8c9acc42b1b5fa656847aef9704b2637c044175f..4db61674c51e5b80f76374cc1e20a41d6dcbfcc7 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-19  Jeff Sturm  <jsturm@one-point.com>
+
+       * libjava.lang/PR3731.java: New file.
+       * libjava.lang/PR3731.out: New file.
+       * libjava.lang/PR3731.xfail: New file.
+
 2001-07-12  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
        * libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'
diff --git a/libjava/testsuite/libjava.lang/PR3731.java b/libjava/testsuite/libjava.lang/PR3731.java
new file mode 100644 (file)
index 0000000..8e974cc
--- /dev/null
@@ -0,0 +1,14 @@
+// Check whether "instanceof" initializes its class argument.
+
+public class PR3731 {
+  static B b;
+  public static void main(String[] args) {
+    System.out.println(b instanceof B);
+  }
+}
+
+class B {
+  static {
+    System.out.println("Initialized");
+  }
+}
diff --git a/libjava/testsuite/libjava.lang/PR3731.out b/libjava/testsuite/libjava.lang/PR3731.out
new file mode 100644 (file)
index 0000000..f44b2ae
--- /dev/null
@@ -0,0 +1,2 @@
+Initialized
+false
diff --git a/libjava/testsuite/libjava.lang/PR3731.xfail b/libjava/testsuite/libjava.lang/PR3731.xfail
new file mode 100644 (file)
index 0000000..c999f8e
--- /dev/null
@@ -0,0 +1 @@
+xfail-output