[Nice-commit] Nice/testsuite/compiler/native import.testsuite,1.4,1.5
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-06-21 16:40:01
|
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; |