Update of /cvsroot/nice/Nice/testsuite/compiler/native
In directory sc8-pr-cvs1:/tmp/cvs-serv3930/testsuite/compiler/native
Modified Files:
instanceof.testsuite
Log Message:
Fixed 'instanceof Array' tests for values that are statically known to be
arrays (they could still be null).
Index: instanceof.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/native/instanceof.testsuite,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** instanceof.testsuite 30 Nov 2003 14:24:35 -0000 1.6
--- instanceof.testsuite 19 Dec 2003 02:12:34 -0000 1.7
***************
*** 36,37 ****
--- 36,46 ----
else
throw new Error();
+
+ /// PASS
+ assert [] instanceof Array;
+
+ int[] i = [0];
+ assert i instanceof Array;
+
+ List<String> l = [""];
+ assert l instanceof Array;
|