Update of /cvsroot/nice/Nice/testsuite/compiler/native
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30121/testsuite/compiler/native
Modified Files:
import.testsuite
Log Message:
Testcases for static import.
Index: import.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/native/import.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** import.testsuite 13 Mar 2005 15:27:42 -0000 1.4
--- import.testsuite 21 Jun 2005 16:39:36 -0000 1.5
***************
*** 22,23 ****
--- 22,65 ----
import java.util.*;
import java.sql.*;
+
+
+ /// COMMENT static import
+
+ /// PASS
+ let PI2 = PI/2;
+ /// Toplevel
+ import static java.lang.Math.PI;
+
+ /// FAIL
+ /// package a
+ /// Toplevel
+ import static java.lang.Math.PI;
+ /// package b import a
+ // Check that the static import is not leaked
+ let x = /*/// FAIL HERE */ PI;
+
+ /// PASS
+ if (false)
+ gc();
+ /// Toplevel
+ import static java.lang.System.gc;
+
+ /// FAIL
+ /// Toplevel
+ import static /*/// FAIL HERE */ FooBar;
+
+ /// FAIL
+ /// Toplevel
+ import static FooBar /*/// FAIL HERE */ .;
+
+ /// FAIL
+ /// Toplevel
+ import static /*/// FAIL HERE */ FooBar.baz;
+
+ /// FAIL
+ /// Toplevel
+ import static /*/// FAIL HERE */ int.baz;
+
+ /// FAIL
+ /// Toplevel
+ import static /*/// FAIL HERE */ java.lang.String.baz;
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|