* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.
From-SVN: r44151
+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.'
--- /dev/null
+// 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");
+ }
+}
--- /dev/null
+Initialized
+false
--- /dev/null
+xfail-output