aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2001-07-19 14:03:08 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2001-07-19 14:03:08 +0000
commitdeaabf1413702dac464e2814ab1d57338a3d686f (patch)
tree260201f5c36fe69e5035fac804586b554334a4df
parentbfabbc3c2a5b9eb1dd5024a9ed3cdf91d2b77077 (diff)
downloadgcc-deaabf1413702dac464e2814ab1d57338a3d686f.zip
gcc-deaabf1413702dac464e2814ab1d57338a3d686f.tar.gz
gcc-deaabf1413702dac464e2814ab1d57338a3d686f.tar.bz2
re PR java/3731 (gcj should generate class init code for instanceof)
* libjava.lang/PR3731.java: New file. * libjava.lang/PR3731.out: New file. * libjava.lang/PR3731.xfail: New file. From-SVN: r44151
-rw-r--r--libjava/testsuite/ChangeLog6
-rw-r--r--libjava/testsuite/libjava.lang/PR3731.java14
-rw-r--r--libjava/testsuite/libjava.lang/PR3731.out2
-rw-r--r--libjava/testsuite/libjava.lang/PR3731.xfail1
4 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 8c9acc4..4db6167 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -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
index 0000000..8e974cc
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/PR3731.java
@@ -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
index 0000000..f44b2ae
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/PR3731.out
@@ -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
index 0000000..c999f8e
--- /dev/null
+++ b/libjava/testsuite/libjava.lang/PR3731.xfail
@@ -0,0 +1 @@
+xfail-output