summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/Array_3.java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2002-07-02 17:21:10 +0000
committerAndrew Haley <aph@gcc.gnu.org>2002-07-02 17:21:10 +0000
commit6ac0c1e36f3e6584f06c1c044a741ce965450e49 (patch)
treebadc81aa1b55d6996e2e3a9395617eeb26ef6e67 /libjava/testsuite/libjava.lang/Array_3.java
parent49e7b251ee93b18e852eb2b4e328b1094edd93a4 (diff)
inline.java: New file.
2002-07-02 Andrew Haley <aph@redhat.com> * libjava.lang/inline.java: New file. * libjava.lang/inline.out: Likewise. * libjava.lang/Array_3.java: Add another case. From-SVN: r55186
Diffstat (limited to 'libjava/testsuite/libjava.lang/Array_3.java')
-rw-r--r--libjava/testsuite/libjava.lang/Array_3.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/libjava/testsuite/libjava.lang/Array_3.java b/libjava/testsuite/libjava.lang/Array_3.java
index f8b7ded4685..453387d51fb 100644
--- a/libjava/testsuite/libjava.lang/Array_3.java
+++ b/libjava/testsuite/libjava.lang/Array_3.java
@@ -27,7 +27,7 @@ public class Array_3
ok = true;
}
if (!ok)
- throw new RuntimeException("test failed");
+ throw new RuntimeException("test failed:1");
ok = false;
try
@@ -40,7 +40,7 @@ public class Array_3
ok = true;
}
if (!ok)
- throw new RuntimeException("test failed");
+ throw new RuntimeException("test failed:2");
ok = false;
try
@@ -54,6 +54,19 @@ public class Array_3
}
if (!ok || nn != 0)
- throw new RuntimeException("test failed");
+ throw new RuntimeException("test failed:3");
+
+ ok = false;
+ try
+ {
+ int[] x = (int[])null;
+ nn = x.length;
+ }
+ catch (NullPointerException _)
+ {
+ ok = true;
+ }
+ if (!ok)
+ throw new RuntimeException("test failed:4");
}
}