From deaabf1413702dac464e2814ab1d57338a3d686f Mon Sep 17 00:00:00 2001 From: Jeff Sturm Date: Thu, 19 Jul 2001 14:03:08 +0000 Subject: [PATCH] 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 --- libjava/testsuite/ChangeLog | 6 ++++++ libjava/testsuite/libjava.lang/PR3731.java | 14 ++++++++++++++ libjava/testsuite/libjava.lang/PR3731.out | 2 ++ libjava/testsuite/libjava.lang/PR3731.xfail | 1 + 4 files changed, 23 insertions(+) create mode 100644 libjava/testsuite/libjava.lang/PR3731.java create mode 100644 libjava/testsuite/libjava.lang/PR3731.out create mode 100644 libjava/testsuite/libjava.lang/PR3731.xfail diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 8c9acc42b1b..4db61674c51 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2001-07-19 Jeff Sturm + + * libjava.lang/PR3731.java: New file. + * libjava.lang/PR3731.out: New file. + * libjava.lang/PR3731.xfail: New file. + 2001-07-12 Alexandre Petit-Bianco * 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 00000000000..8e974ccca8a --- /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 00000000000..f44b2ae13d7 --- /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 00000000000..c999f8ee0ca --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR3731.xfail @@ -0,0 +1 @@ +xfail-output -- 2.30.2