diff options
author | Tom Tromey <tromey@redhat.com> | 2002-06-04 19:39:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-06-04 19:39:02 +0000 |
commit | d6ee617dd7edc5cb721ad5cd320c47acd18e7ea8 (patch) | |
tree | 2358454229893641ff57b859c12b67dc2131ca2c /libjava/testsuite/libjava.compile | |
parent | 4e176a9bbd80acdc4176d011755b54670ef647fb (diff) | |
download | gcc-d6ee617dd7edc5cb721ad5cd320c47acd18e7ea8.tar.gz |
re PR libgcj/6389 (System.getProperty("") should always throw an IllegalArgumentException)
* libjava.compile/T20020604.java: New file.
For PR libgcj/6389:
* libjava.mauve/xfails: Now passes System.getProperty test.
For PR java/1343 and PR java/6336:
* libjava.compile/PR1343.java: New file.
For PR java/5913:
* libjava.compile/PR5913.xfail: Removed.
From-SVN: r54259
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR1343.java | 17 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR5913.xfail | 2 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/T20020604.java | 17 |
3 files changed, 34 insertions, 2 deletions
diff --git a/libjava/testsuite/libjava.compile/PR1343.java b/libjava/testsuite/libjava.compile/PR1343.java new file mode 100644 index 00000000000..be3592533b8 --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR1343.java @@ -0,0 +1,17 @@ +import java.util.Vector; + +public class PR1343 +{ + void f(Object[] l) + { + class x1 + { + }; + } + void f(Vector l) + { + class x1 + { + }; + } +} diff --git a/libjava/testsuite/libjava.compile/PR5913.xfail b/libjava/testsuite/libjava.compile/PR5913.xfail deleted file mode 100644 index a61ff5be362..00000000000 --- a/libjava/testsuite/libjava.compile/PR5913.xfail +++ /dev/null @@ -1,2 +0,0 @@ -xfail-gcj -xfail-gcjC diff --git a/libjava/testsuite/libjava.compile/T20020604.java b/libjava/testsuite/libjava.compile/T20020604.java new file mode 100644 index 00000000000..fba68c20c48 --- /dev/null +++ b/libjava/testsuite/libjava.compile/T20020604.java @@ -0,0 +1,17 @@ +// Regression test for gcj crash, when compiled with -O2 on +// i686-pc-linux-gnu. +public class T20020604 +{ + static double d2 = 0.0; + + static Object lockObject = new Object(); + + public static double f(double d1) { + + synchronized (lockObject){ + d2 = Math.max(d1, d2); + } + + return d2; + } +} |