X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=libjava%2Ftestsuite%2Flibjava.lang%2FArray_3.java;fp=libjava%2Ftestsuite%2Flibjava.lang%2FArray_3.java;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f8b7ded4685d1712bbf31ca70ead571182709d31;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libjava/testsuite/libjava.lang/Array_3.java b/libjava/testsuite/libjava.lang/Array_3.java deleted file mode 100644 index f8b7ded4..00000000 --- a/libjava/testsuite/libjava.lang/Array_3.java +++ /dev/null @@ -1,59 +0,0 @@ -// Test to make sure null arrays throw the right execption - -public class Array_3 -{ - static Object foo () - { - return null; - } - - static int[] bar () - { - return null; - } - - public static void main(String args[]) - { - boolean ok = false; - int nn = 0; - - try - { - int[] x = (int[])foo(); - nn = x.length; - } - catch (NullPointerException _) - { - ok = true; - } - if (!ok) - throw new RuntimeException("test failed"); - - ok = false; - try - { - int[] x = bar(); - nn = x.length; - } - catch (NullPointerException _) - { - ok = true; - } - if (!ok) - throw new RuntimeException("test failed"); - - ok = false; - try - { - int[] x = bar(); - nn = x[0]; - } - catch (NullPointerException _) - { - ok = true; - } - - if (!ok || nn != 0) - throw new RuntimeException("test failed"); - } -}