diff options
author | Anthony Green <green@redhat.com> | 2005-04-21 16:22:33 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2005-04-21 16:22:33 +0000 |
commit | ad903c6db716b2bfbbc242afc0252443ad72ca46 (patch) | |
tree | 1ce30935c538cf7acadb1dde58e6e8119c78fe14 /libjava/testsuite/libjava.special/pr21115.java | |
parent | 55f96367561241fe9885766948d372bf850985de (diff) | |
download | gcc-ad903c6db716b2bfbbc242afc0252443ad72ca46.zip gcc-ad903c6db716b2bfbbc242afc0252443ad72ca46.tar.gz gcc-ad903c6db716b2bfbbc242afc0252443ad72ca46.tar.bz2 |
re PR java/21115 (false boolean argument passed from pre-compiled to interpreted method is true)
2005-04-21 Anthony Green <green@redhat.com>
PR libgcj/21115
* testsuite/libjava.special/special.exp,
testsuite/libjava.special/pr21115I.java,
testsuite/libjava.special/pr21115.java,
testsuite/libjava.special/pr21115.out: New files.
From-SVN: r98511
Diffstat (limited to 'libjava/testsuite/libjava.special/pr21115.java')
-rw-r--r-- | libjava/testsuite/libjava.special/pr21115.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.special/pr21115.java b/libjava/testsuite/libjava.special/pr21115.java new file mode 100644 index 0000000..2e23f27 --- /dev/null +++ b/libjava/testsuite/libjava.special/pr21115.java @@ -0,0 +1,34 @@ +public abstract class pr21115 +{ + public static void main(String[] args) throws Exception + { + Class c = Class.forName("pr21115I"); + Object o = c.newInstance(); + pr21115 t = (pr21115) o; + // Try to fill the stack with 0xff. + t.test (0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff); + // Pass a bunch of false (0) values. + if (t.test (false, false, + false, false, + false, false, + false, false, + false, false)) + System.out.println ("FAILED - expecting false return value."); + } + + public abstract boolean test(boolean a, boolean b, + boolean c, boolean d, + boolean e, boolean f, + boolean g, boolean h, + boolean i, boolean j); + + public abstract boolean test(int a, int b, + int c, int d, + int e, int f, + int g, int h, + int i, int j); +} |