diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
commit | 1be77ea1628196d60a1d78d8748c2584019287f9 (patch) | |
tree | 0d603b99106e22855fafd93ea797dc65f47bf1ee /libjava/testsuite/libjava.lang | |
parent | ad1b99fa4f13bf490ac74209b0850291849c17de (diff) |
This commit was manufactured by cvs2svn to create tagbounded-pointers-merge-20000811
'bounded-pointers-merge-20000811'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/bounded-pointers-merge-20000811@35723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.lang')
199 files changed, 0 insertions, 4521 deletions
diff --git a/libjava/testsuite/libjava.lang/Array_1.java b/libjava/testsuite/libjava.lang/Array_1.java deleted file mode 100644 index 1fcf04eeb4d..00000000000 --- a/libjava/testsuite/libjava.lang/Array_1.java +++ /dev/null @@ -1,18 +0,0 @@ -// Test of array stuff. Technically this probably isn't in java.lang. - -public class Array_1 -{ - public static void main (String[] args) - { - int x[][] = { { 1, 2}, null }; - - System.out.println(Cloneable.class.isInstance(x)); - - // This example is from the Java Spec book. - int y[][] = (int[][]) x.clone(); - System.out.println(x == y); - System.out.println(x[0] == y[0] && x[1] == y[1]); - - System.out.println(x.getClass().getSuperclass()); - } -} diff --git a/libjava/testsuite/libjava.lang/Array_1.out b/libjava/testsuite/libjava.lang/Array_1.out deleted file mode 100644 index 3cc754d2ef9..00000000000 --- a/libjava/testsuite/libjava.lang/Array_1.out +++ /dev/null @@ -1,4 +0,0 @@ -true -false -true -class java.lang.Object diff --git a/libjava/testsuite/libjava.lang/Array_2.java b/libjava/testsuite/libjava.lang/Array_2.java deleted file mode 100644 index b406c47d6df..00000000000 --- a/libjava/testsuite/libjava.lang/Array_2.java +++ /dev/null @@ -1,14 +0,0 @@ -// Test to make sure multidimensional arrays work. -// From Bryce McKinlay - -public class Array_2 -{ - static final int a = 10, b = 15; - - public static void main(String args[]) - { - int[][] foo = new int [a][b]; - System.out.println(foo.length); - System.out.println(foo[a-1].length); - } -} diff --git a/libjava/testsuite/libjava.lang/Array_2.out b/libjava/testsuite/libjava.lang/Array_2.out deleted file mode 100644 index 349103a8769..00000000000 --- a/libjava/testsuite/libjava.lang/Array_2.out +++ /dev/null @@ -1,2 +0,0 @@ -10 -15 diff --git a/libjava/testsuite/libjava.lang/Class_1.java b/libjava/testsuite/libjava.lang/Class_1.java deleted file mode 100644 index f2156ebff30..00000000000 --- a/libjava/testsuite/libjava.lang/Class_1.java +++ /dev/null @@ -1,49 +0,0 @@ -class C {} -class D extends C implements I {} -interface I {} -interface J extends I {} - -public class Class_1 -{ - static void printIsAssignableFrom(Class a, Class b, boolean c) - { - // The field 'c' can be viewed to see the expected value. - System.out.println(a.isAssignableFrom(b)); - } - - public static void main (String arg[]) - { - System.out.println("Testing class `Class_1'..."); - printIsAssignableFrom(C.class, Object.class, false); - printIsAssignableFrom(C.class, C.class, true); - printIsAssignableFrom(C.class, D.class, true); - printIsAssignableFrom(D.class, C.class, false); - - printIsAssignableFrom(Object.class, int[].class, true); - printIsAssignableFrom(int[].class, int[].class, true); - printIsAssignableFrom(C[].class, D.class, false); - printIsAssignableFrom(C[].class, D[].class, true); - // Known compiler limitation prevents next case from compiling. - // printIsAssignableFrom(C[].class, C[][].class, false); - System.out.println("printIsAssignableFrom(C[].class, C[][].class, false);" + - " case uncompilable due to known compiler limitation."); - - printIsAssignableFrom(Object.class, I.class, true); - printIsAssignableFrom(I.class, I.class, true); - printIsAssignableFrom(D.class, I.class, false); - printIsAssignableFrom(I.class, D.class, true); - - printIsAssignableFrom(D.class, J.class, false); - printIsAssignableFrom(J.class, D.class, false); - - printIsAssignableFrom(I.class, J.class, true); - printIsAssignableFrom(J.class, J.class, true); - printIsAssignableFrom(J.class, I.class, false); - - // Returns true iff both Class objects are equal. - printIsAssignableFrom(long.class, long.class, true); - - // Does not work for primitive types in general. - printIsAssignableFrom(long.class, int.class, false); - } -} diff --git a/libjava/testsuite/libjava.lang/Class_1.out b/libjava/testsuite/libjava.lang/Class_1.out deleted file mode 100644 index 531b94f0625..00000000000 --- a/libjava/testsuite/libjava.lang/Class_1.out +++ /dev/null @@ -1,21 +0,0 @@ -Testing class `Class_1'... -false -true -true -false -true -true -false -true -false -true -true -false -true -false -false -true -true -false -true -false diff --git a/libjava/testsuite/libjava.lang/Divide_1.java b/libjava/testsuite/libjava.lang/Divide_1.java deleted file mode 100644 index d4e01939aa5..00000000000 --- a/libjava/testsuite/libjava.lang/Divide_1.java +++ /dev/null @@ -1,105 +0,0 @@ -public class Divide_1 -{ - static int b = Integer.parseInt ("-1"); - int b1 = Integer.parseInt ("-1"); - static int zero = Integer.parseInt ("0"); - - void probe () - { - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a/-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%b1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("-80000000", 16); - int c = a%-1; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("8000", 16); - int b = Integer.parseInt ("0", 16); - int c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - int a = Integer.parseInt ("8000", 16); - int b = Integer.parseInt ("0", 16); - int c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("-8000000000000000", 16); - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("-8000000000000000", 16); - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("8000", 16); - long b = Long.parseLong ("0", 16); - long c = a/b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - - try { - long a = Long.parseLong ("8000", 16); - long b = Long.parseLong ("0", 16); - long c = a%b; - System.out.println (c); - } catch (Exception _) { - System.out.println (_); - } - } - - public static void main (String[] args) { - new Divide_1 ().probe (); - } -} diff --git a/libjava/testsuite/libjava.lang/Divide_1.out b/libjava/testsuite/libjava.lang/Divide_1.out deleted file mode 100644 index 6e1f87ed4fc..00000000000 --- a/libjava/testsuite/libjava.lang/Divide_1.out +++ /dev/null @@ -1,11 +0,0 @@ --2147483648 --2147483648 -0 -0 -0 -java.lang.ArithmeticException: / by zero -java.lang.ArithmeticException: / by zero --9223372036854775808 -0 -java.lang.ArithmeticException: / by zero -java.lang.ArithmeticException: / by zero diff --git a/libjava/testsuite/libjava.lang/Final.java b/libjava/testsuite/libjava.lang/Final.java deleted file mode 100644 index 1b22096c359..00000000000 --- a/libjava/testsuite/libjava.lang/Final.java +++ /dev/null @@ -1,20 +0,0 @@ -public final class Final -{ - public static void main(String args[]) - { - Final f = null; - try - { - f.doSomething(); - } - catch (NullPointerException x) - { - System.out.println("NullPointerException - ok"); - } - } - - void doSomething() - { - System.out.println("This should not happen"); - } -} diff --git a/libjava/testsuite/libjava.lang/Final.out b/libjava/testsuite/libjava.lang/Final.out deleted file mode 100644 index 2e513123d7c..00000000000 --- a/libjava/testsuite/libjava.lang/Final.out +++ /dev/null @@ -1 +0,0 @@ -NullPointerException - ok diff --git a/libjava/testsuite/libjava.lang/Final.xfail b/libjava/testsuite/libjava.lang/Final.xfail deleted file mode 100644 index c999f8ee0ca..00000000000 --- a/libjava/testsuite/libjava.lang/Final.xfail +++ /dev/null @@ -1 +0,0 @@ -xfail-output diff --git a/libjava/testsuite/libjava.lang/Float_1.java b/libjava/testsuite/libjava.lang/Float_1.java deleted file mode 100644 index cb147ee8aca..00000000000 --- a/libjava/testsuite/libjava.lang/Float_1.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - -Date: 25 Aug 1998 16:04:00 -0000 -From: Andrew Haley <aph@pasanda.cygnus.co.uk> -To: java-project@cygnus.com -Subject: Help: vtable problem? - -My little program: - ------------------------------------------------------------------------ -import java.lang.*; - - public class widget - { - public static void main (String argv[]) - { - int test = Float.floatToIntBits((float)2.0); - String s = Integer.toHexString(test); - - System.out.print (s+"\n"); - } - - } ------------------------------------------------------------------------ -prints out - -40000000 - -with Sun's interpreter, but prints out - -true - -when compiled with gcj; PrintStream dispatches a string arg as a -boolean rather than as a String. I've tried to rebuild everything. - -? - -Thanks, -Andrew. - -*/ - -public class Float_1 -{ - public static void main (String argv[]) - { - int test = Float.floatToIntBits((float)2.0); - String s = Integer.toHexString(test); - - System.out.print (s+"\n"); - } -} diff --git a/libjava/testsuite/libjava.lang/Float_1.out b/libjava/testsuite/libjava.lang/Float_1.out deleted file mode 100644 index 52f3f6a7451..00000000000 --- a/libjava/testsuite/libjava.lang/Float_1.out +++ /dev/null @@ -1 +0,0 @@ -40000000 diff --git a/libjava/testsuite/libjava.lang/G19990301_01.java b/libjava/testsuite/libjava.lang/G19990301_01.java deleted file mode 100644 index abd38cef4a2..00000000000 --- a/libjava/testsuite/libjava.lang/G19990301_01.java +++ /dev/null @@ -1,12 +0,0 @@ -public class G19990301_01 { - public static void main(String args[]) { - foo pd = new foo(); - System.out.println ("Pass 1"); - pd.s = "test"; - System.out.println ("Pass 2"); - } -} -class foo { - static String s = "test"; -} - diff --git a/libjava/testsuite/libjava.lang/G19990301_01.out b/libjava/testsuite/libjava.lang/G19990301_01.out deleted file mode 100644 index 337175ef706..00000000000 --- a/libjava/testsuite/libjava.lang/G19990301_01.out +++ /dev/null @@ -1,2 +0,0 @@ -Pass 1 -Pass 2 diff --git a/libjava/testsuite/libjava.lang/G19990302_02.java b/libjava/testsuite/libjava.lang/G19990302_02.java deleted file mode 100644 index ecf6f295ec9..00000000000 --- a/libjava/testsuite/libjava.lang/G19990302_02.java +++ /dev/null @@ -1,15 +0,0 @@ -public class G19990302_02 { - public static void main(String args[]) { - try { - Object[] arrayObj = new String[3]; - String[] arrayStr = new String[3]; - System.out.println ("Pass 1"); - arrayObj[0] = arrayStr; // String object <-- String array object - System.out.println ("Pass 2"); - } catch (ArrayStoreException e) { - System.out.println ("ArrayStoreException"); - } - System.out.println ("Pass 3"); - } -} - diff --git a/libjava/testsuite/libjava.lang/G19990302_02.out b/libjava/testsuite/libjava.lang/G19990302_02.out deleted file mode 100644 index c254b310e43..00000000000 --- a/libjava/testsuite/libjava.lang/G19990302_02.out +++ /dev/null @@ -1,3 +0,0 @@ -Pass 1 -ArrayStoreException -Pass 3 diff --git a/libjava/testsuite/libjava.lang/G19990303_01.java b/libjava/testsuite/libjava.lang/G19990303_01.java deleted file mode 100644 index fc3ca55281c..00000000000 --- a/libjava/testsuite/libjava.lang/G19990303_01.java +++ /dev/null @@ -1,19 +0,0 @@ -public class G19990303_01 -{ - public static void main (String[] args) - { - try - { - Object[] ar = new String[3]; - String[] as = new String[3]; - System.out.println("1"); - ar[0] = as; - System.out.println("2"); - } - catch (Exception _) - { - System.out.println("X"); - } - System.out.println("3"); - } -} diff --git a/libjava/testsuite/libjava.lang/G19990303_01.out b/libjava/testsuite/libjava.lang/G19990303_01.out deleted file mode 100644 index f081db642ff..00000000000 --- a/libjava/testsuite/libjava.lang/G19990303_01.out +++ /dev/null @@ -1,3 +0,0 @@ -1 -X -3 diff --git a/libjava/testsuite/libjava.lang/G19990303_02.java b/libjava/testsuite/libjava.lang/G19990303_02.java deleted file mode 100644 index 19c8e305e2a..00000000000 --- a/libjava/testsuite/libjava.lang/G19990303_02.java +++ /dev/null @@ -1,19 +0,0 @@ -public class G19990303_02 -{ - public static void main (String[] args) - { - int i = -1; - try - { - System.out.println ("Pass 1"); - int[][][] arrayInt = new int[i][1][1]; - int ii = arrayInt[i - 1][0][0]; - System.out.println ("Pass 2"); - } - catch (NegativeArraySizeException e) - { - System.out.println ("Pass NegativeArraySizeException"); - } - System.out.println ("Pass 3"); - } -} diff --git a/libjava/testsuite/libjava.lang/G19990303_02.out b/libjava/testsuite/libjava.lang/G19990303_02.out deleted file mode 100644 index 940225527e5..00000000000 --- a/libjava/testsuite/libjava.lang/G19990303_02.out +++ /dev/null @@ -1,3 +0,0 @@ -Pass 1 -Pass NegativeArraySizeException -Pass 3 diff --git a/libjava/testsuite/libjava.lang/G19990304_01.java b/libjava/testsuite/libjava.lang/G19990304_01.java deleted file mode 100644 index f937089e1c4..00000000000 --- a/libjava/testsuite/libjava.lang/G19990304_01.java +++ /dev/null @@ -1,18 +0,0 @@ -public class G19990304_01 -{ - public static void main (String[] args) - { - Object[] arrayObj = new String[3]; - String[] arrayStr = new String[3]; - try - { - System.out.println ("pass 1"); - arrayObj[0] = arrayStr; - } - catch (RuntimeException e) - { - System.out.println ("RuntimeException"); - } - System.out.println ("pass 2"); - } -} diff --git a/libjava/testsuite/libjava.lang/G19990304_01.out b/libjava/testsuite/libjava.lang/G19990304_01.out deleted file mode 100644 index 6fe123eea2b..00000000000 --- a/libjava/testsuite/libjava.lang/G19990304_01.out +++ /dev/null @@ -1,3 +0,0 @@ -pass 1 -RuntimeException -pass 2 diff --git a/libjava/testsuite/libjava.lang/G19990310_01.java b/libjava/testsuite/libjava.lang/G19990310_01.java deleted file mode 100644 index 72caece57f4..00000000000 --- a/libjava/testsuite/libjava.lang/G19990310_01.java +++ /dev/null @@ -1,21 +0,0 @@ -public class G19990310_01 -{ - public static void main (String[] args) - { - int i = 0; - try - { - System.out.println ("pass 1"); - i++; - } - finally - { - System.out.println ("pass 2"); - i++; - } - if (i == 2) - System.out.println ("OK"); - else - System.out.println ("NG i = " + i); - } -} diff --git a/libjava/testsuite/libjava.lang/G19990310_01.out b/libjava/testsuite/libjava.lang/G19990310_01.out deleted file mode 100644 index 36a538b4a90..00000000000 --- a/libjava/testsuite/libjava.lang/G19990310_01.out +++ /dev/null @@ -1,3 +0,0 @@ -pass 1 -pass 2 -OK diff --git a/libjava/testsuite/libjava.lang/InterfaceDispatch.java b/libjava/testsuite/libjava.lang/InterfaceDispatch.java deleted file mode 100644 index 17f5c46946f..00000000000 --- a/libjava/testsuite/libjava.lang/InterfaceDispatch.java +++ /dev/null @@ -1,403 +0,0 @@ -/* Test interface dispatch, type checking (instanceof), and casting. */ - -interface IA -{ - String a(); -} - -interface IB extends IA -{ - String b(); -} - -interface IC extends IB -{ - void c(); - int d(); - IB e(int i); -} - -interface ID -{ - String z(); - String a(); -} - -class CA -{ - String a() - { - return "CA a()"; - } -} - -class CB implements IB -{ - public String a() - { - return "CB a()"; - } - - public String b() - { - return "CB b()"; - } -} - -class CC extends CB -{ - public int d() - { - return 99; - } -} - -class CD extends CC implements IC -{ - public String a() - { - return "CD a()"; - } - - public void c() - { - System.out.println("CD c()"); - } - - public int d() - { - return 6; - } - - public IB e(int i) - { - if (i == 1) - return new CB(); - else - return new CD(); - } -} - -class CE extends CB implements IB, ID -{ - public String a() - { - return ("CE a()"); - } - - public String b() - { - return ("CE b()"); - } - - public String z() - { - return("CE z()"); - } -} - - -public class InterfaceDispatch -{ - public static void main(String args[]) - { - new InterfaceDispatch(); - } - - public InterfaceDispatch() - { - /* _Jv_InstanceOf */ - - /* Object instanceof CLASS */ - Object obj = new CA(); - - if (obj instanceof CA) - { - System.out.println ("ok 1"); - } - else - { - System.out.println ("FAIL 1"); - } - - obj = new CD(); - - if (!(obj instanceof CA)) - { - System.out.println ("ok 2a"); - } - else - { - System.out.println ("FAIL 2a"); - } - - if (obj instanceof CB) - { - System.out.println ("ok 2b"); - } - else - { - System.out.println ("FAIL 2b"); - } - - - /* Object instanceof INTERFACE */ - obj = new CB(); - - if (!(obj instanceof IC)) - { - System.out.println("ok 3"); - } - else - { - System.out.println ("FAIL 3"); - } - - if (obj instanceof IB) - { - System.out.println("ok 4"); - } - else - { - System.out.println ("FAIL 4"); - } - - /* InterfaceRef instanceof INTERFACE */ - - IA ia = new CB(); - - if (ia instanceof IB) - { - System.out.println("ok 5"); - } - else - { - System.out.println ("FAIL 5"); - } - - - if (!(ia instanceof IC)) - { - System.out.println("ok 6"); - } - else - { - System.out.println ("FAIL 6"); - } - - /* InterfaceRef instanceof CLASS */ - - if (ia instanceof CB) - { - System.out.println("ok 7"); - } - else - { - System.out.println ("FAIL 7"); - } - - - if (!(ia instanceof CD)) - { - System.out.println("ok 8"); - } - else - { - System.out.println ("FAIL 8"); - } - - - /* _Jv_CheckCast */ - Object obj_ca = new CA(); - Object obj_cc = new CC(); - - IA ia2; - - try - { - ia2 = (IA) obj_cc; - System.out.println("ok 9"); - } - catch (ClassCastException x) - { - System.out.println("FAIL 9"); - } - - CD cd; - - try - { - cd = (CD) obj_ca; - System.out.println("FAIL 10"); - } - catch (ClassCastException x) - { - System.out.println("ok 10"); - } - - IA ia3; - - try - { - ia3 = (IB) obj_ca; - System.out.println("FAIL 11"); - } - catch (ClassCastException x) - { - System.out.println("ok 11"); - } - - /* _Jv_LookupInterfaceMethod */ - Object obj_cb = new CB(); - - IB ib = (IB) obj_cb; - ib.b(); - if (ib.a().equalsIgnoreCase("CB a()")) - System.out.println("ok 12"); - else - System.out.println("FAIL 12"); - - IC ic = new CD(); - if (ic.a().equalsIgnoreCase("CD a()")) - System.out.println("ok 13"); - else - System.out.println("FAIL 13"); - - if (ic.d() == 6) - System.out.println("ok 14"); - else - System.out.println("FAIL 14"); - - Object ce = new CE(); - - ib = (IB) ce; - ID id = (ID) ce; - - if (ib.b().equals("CE b()") && id.a().equals("CE a()")) - System.out.println("ok 15"); - else - System.out.println("FAIL 15"); - - String t = ((ID)ce).z(); - - if (t.equalsIgnoreCase("CE z()")) - System.out.println("ok 16"); - else - System.out.println("FAIL 16"); - - /* Array types */ - - Object[] obj_a = new CC[10]; - try - { - CB[] ca_a = (CB[]) obj_a; - System.out.println("ok 17"); - } - catch (ClassCastException x) - { - System.out.println("FAIL 17"); - } - - if (obj_a instanceof IB[]) - { - System.out.println("ok 18"); - } - else - { - System.out.println("FAIL 18"); - } - - IB[] ib_a = new CD[5]; - try - { - CD[] cd_a = (CD[]) ib_a; - System.out.println("ok 19"); - } - catch (ClassCastException x) - { - System.out.println("FAIL 19"); - } - - CA[] ca_a; - - try - { - ca_a = (CA[]) ib_a; - System.out.println("FAIL 20"); - } - catch (ClassCastException x) - { - System.out.println("ok 20"); - } - - - /* Primitive types */ - - short[] short_a = new short[100]; - - try - { - obj = short_a; - System.out.println("ok 21"); - } - catch (ClassCastException x) - { - System.out.println("FAIL 21"); - } - - try - { - short[] short_b = (short[]) obj; - System.out.println("ok 22"); - } - catch (ClassCastException x) - { - System.out.println("FAIL 22"); - } - - int[] short_b; - - try - { - short_b = (int[]) obj; - System.out.println("FAIL 23"); - } - catch (ClassCastException x) - { - System.out.println("ok 23"); - } - - Object obj1 = new int[25]; - - if (obj1 instanceof short[]) - { - System.out.println("FAIL 24"); - } - else - { - System.out.println("ok 24"); - } - - if (obj1 instanceof int[]) - { - System.out.println("ok 25"); - } - else - { - System.out.println("FAIL 25"); - } - - /* null assignment */ - - CA obj_ca2 = null; - - if (obj_ca2 instanceof CA) - { - System.out.println("FAIL 26"); - } - else - { - System.out.println("ok 26"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/InterfaceDispatch.out b/libjava/testsuite/libjava.lang/InterfaceDispatch.out deleted file mode 100644 index 1582e3afa04..00000000000 --- a/libjava/testsuite/libjava.lang/InterfaceDispatch.out +++ /dev/null @@ -1,27 +0,0 @@ -ok 1 -ok 2a -ok 2b -ok 3 -ok 4 -ok 5 -ok 6 -ok 7 -ok 8 -ok 9 -ok 10 -ok 11 -ok 12 -ok 13 -ok 14 -ok 15 -ok 16 -ok 17 -ok 18 -ok 19 -ok 20 -ok 21 -ok 22 -ok 23 -ok 24 -ok 25 -ok 26 diff --git a/libjava/testsuite/libjava.lang/Invoke_1.java b/libjava/testsuite/libjava.lang/Invoke_1.java deleted file mode 100644 index bc4678301ce..00000000000 --- a/libjava/testsuite/libjava.lang/Invoke_1.java +++ /dev/null @@ -1,27 +0,0 @@ -// Test of failing method invocation. - -public class Invoke_1 -{ - public void call_me () - { - System.out.println ("no"); - } - - public static Invoke_1 get_i () - { - return null; - } - - public static void main (String[] args) - { - Invoke_1 i = get_i (); - try - { - i.call_me (); - } - catch (NullPointerException ok) - { - System.out.println ("ok"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Invoke_1.out b/libjava/testsuite/libjava.lang/Invoke_1.out deleted file mode 100644 index 9766475a418..00000000000 --- a/libjava/testsuite/libjava.lang/Invoke_1.out +++ /dev/null @@ -1 +0,0 @@ -ok diff --git a/libjava/testsuite/libjava.lang/Invoke_2.java b/libjava/testsuite/libjava.lang/Invoke_2.java deleted file mode 100644 index a2d1407b31b..00000000000 --- a/libjava/testsuite/libjava.lang/Invoke_2.java +++ /dev/null @@ -1,20 +0,0 @@ -public class Invoke_2 -{ - static int s; - - public static void foo (int a, int b) - { - System.out.println(a + " " + b); - } - - public static void main(String[] args) { - foo (bar(), s); - } - - public static int bar() - { - s = 33; - return 99; - } -} - diff --git a/libjava/testsuite/libjava.lang/Invoke_2.out b/libjava/testsuite/libjava.lang/Invoke_2.out deleted file mode 100644 index 39501553b7b..00000000000 --- a/libjava/testsuite/libjava.lang/Invoke_2.out +++ /dev/null @@ -1 +0,0 @@ -99 33 diff --git a/libjava/testsuite/libjava.lang/N19990310_02.java b/libjava/testsuite/libjava.lang/N19990310_02.java deleted file mode 100644 index 0c5bd03e95f..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_02.java +++ /dev/null @@ -1,22 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* Name : N19990310_02 */ -/* : */ -/* Cause : Array value calculation in for,while,do while loop is not */ -/* : correct */ -/* : */ -/* Message : NG:[3]-->[2] */ -/*--------------------------------------------------------------------------*/ - -public class N19990310_02 { - public static void main(String[] args) { - int y[] = {2}; - for ( int i = 0; i < 1; i++ ) { - y[i] += 1; - if ( y[i] != 3 ) { - System.out.println("NG:[3]-->[" +y[i]+ "]"); - } - else - System.out.println("OK"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/N19990310_02.out b/libjava/testsuite/libjava.lang/N19990310_02.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_02.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/N19990310_3.java b/libjava/testsuite/libjava.lang/N19990310_3.java deleted file mode 100644 index b6dfac28749..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* Name : N19990310_3 */ -/* : */ -/* Cause : Evaluation order miss, when make integer array. */ -/* : */ -/* Message : NG:[4]-->[1] */ -/*--------------------------------------------------------------------------*/ - -public class N19990310_3 { - public static void main(String[] args) { - - int x = 4; - - int ary[][] = new int[x][x=1]; - - if ( ary.length == 4 ) { - System.out.println("OK"); - } else { - System.out.println("NG:[4]-->[" +ary.length+ "]"); - } - } -} - - diff --git a/libjava/testsuite/libjava.lang/N19990310_3.out b/libjava/testsuite/libjava.lang/N19990310_3.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_3.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/N19990310_4.java b/libjava/testsuite/libjava.lang/N19990310_4.java deleted file mode 100644 index ad89a505bc7..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_4.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* Name : N19990310_4.java */ -/* : */ -/* Cause : assignment operator makes error in char,byte,short variable */ -/* : */ -/* Message : In class `N19990310_4': */ -/* : In method `main(java.lang.String[])': */ -/* : Incompatible type for `='. Explicit cast needed to convert `*/ -/* : `int' to `char'. */ -/* : x += (x = 3); */ -/* : ^ */ -/* : 1 error */ -/*--------------------------------------------------------------------------*/ - -public class N19990310_4 { - public static void main(String[] args) { - char x = 9; - - x += (x = 3); - if ( x == 12 ) { - System.out.println("OK"); - } else { - System.out.println("NG"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/N19990310_4.out b/libjava/testsuite/libjava.lang/N19990310_4.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_4.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/N19990310_5.java b/libjava/testsuite/libjava.lang/N19990310_5.java deleted file mode 100644 index 61ccc5b9f3a..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_5.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* Name : N19990310_5.java */ -/* : */ -/* Cause : A assignment operator makes error in char,byte,short array */ -/* : element */ -/* : */ -/* Message : In class `N19990310_5': */ -/* : In method `main(java.lang.String[])': */ -/* : Incompatible type for `='. Explicit cast needed to convert `*/ -/* : `int' to `char'. */ -/* : a[0] += (a[0] = 3); */ -/* : ^ */ -/* : 1 error */ -/*--------------------------------------------------------------------------*/ - -public class N19990310_5 { - public static void main(String[] args) { - char[] a = {9}; - a[0] += (a[0] = 3); - - if ( a[0] == 12 ) { - System.out.println("OK"); - } else { - System.out.println("NG"); - } - } -} - - diff --git a/libjava/testsuite/libjava.lang/N19990310_5.out b/libjava/testsuite/libjava.lang/N19990310_5.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/N19990310_5.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/PR141.java b/libjava/testsuite/libjava.lang/PR141.java deleted file mode 100644 index c3314f2af76..00000000000 --- a/libjava/testsuite/libjava.lang/PR141.java +++ /dev/null @@ -1,41 +0,0 @@ -import java.io.IOException; -import java.io.StreamTokenizer; -import java.io.StringReader; - -public class PR141 { - public static void test(String str) throws IOException { - StringReader reader = new StringReader(str); - StreamTokenizer st = new StreamTokenizer(reader); - int t = 0; - - do { - t = st.nextToken(); - - switch (t) { - case StreamTokenizer.TT_WORD: - System.out.println("[TT_WORD]: " + st.sval); - break; - case StreamTokenizer.TT_NUMBER: - System.out.println("[TT_NUMBER]: " + st.nval); - break; - case StreamTokenizer.TT_EOL: - System.out.println("[TT_EOL]"); - break; - case StreamTokenizer.TT_EOF: - System.out.println("[TT_EOF]"); - break; - default: - System.out.println((char)t); - break; - } - } while (t != StreamTokenizer.TT_EOF); - } - - public static void main(String[] args) { - try { - test("(a).(b)"); - } catch (Throwable t) { - t.printStackTrace(); - } - } -} diff --git a/libjava/testsuite/libjava.lang/PR141.out b/libjava/testsuite/libjava.lang/PR141.out deleted file mode 100644 index 37cb87c6de2..00000000000 --- a/libjava/testsuite/libjava.lang/PR141.out +++ /dev/null @@ -1,8 +0,0 @@ -( -[TT_WORD]: a -) -[TT_NUMBER]: 0.0 -( -[TT_WORD]: b -) -[TT_EOF] diff --git a/libjava/testsuite/libjava.lang/PR160.java b/libjava/testsuite/libjava.lang/PR160.java deleted file mode 100644 index 77526ef5219..00000000000 --- a/libjava/testsuite/libjava.lang/PR160.java +++ /dev/null @@ -1,34 +0,0 @@ -public class PR160 -{ - static final int len = 100; - - public static void main(String args[]) - { - - double[] a = new double[len]; - double[] b = new double[len]; - - for (int i = 0; i < len ; i++) - { - a[i] = 0.65; - } - - System.arraycopy(a, 0, b, 0, len); - - boolean errors = false; - - for (int i = 0; i < len ; i++) - { - if (a[i] != b[i]) - { - System.out.println("ERROR! " + a[i] + " != " - + b[i] + " at index " + i); - errors = true; - } - } - - if (!errors) - System.out.println("ok"); - - } -} diff --git a/libjava/testsuite/libjava.lang/PR160.out b/libjava/testsuite/libjava.lang/PR160.out deleted file mode 100644 index 9766475a418..00000000000 --- a/libjava/testsuite/libjava.lang/PR160.out +++ /dev/null @@ -1 +0,0 @@ -ok diff --git a/libjava/testsuite/libjava.lang/PR162.java b/libjava/testsuite/libjava.lang/PR162.java deleted file mode 100644 index ffabce0e091..00000000000 --- a/libjava/testsuite/libjava.lang/PR162.java +++ /dev/null @@ -1,29 +0,0 @@ -interface I -{ - int i = 1, ii = PR162.out ("ii", 2); -} - -interface J extends I -{ - int j = PR162.out ("j", 3), jj = PR162.out ("jj", 4); -} - -interface K extends J -{ - int k = PR162.out ("k", 5); -} - -public class PR162 -{ - public static void main (String[] args) - { - System.out.println (J.i); - System.out.println (K.j); - } - - public static int out (String s, int i) - { - System.out.println (s + "=" + i); - return i; - } -} diff --git a/libjava/testsuite/libjava.lang/PR162.out b/libjava/testsuite/libjava.lang/PR162.out deleted file mode 100644 index 6510a2d5921..00000000000 --- a/libjava/testsuite/libjava.lang/PR162.out +++ /dev/null @@ -1,4 +0,0 @@ -1 -j=3 -jj=4 -3 diff --git a/libjava/testsuite/libjava.lang/PR218.java b/libjava/testsuite/libjava.lang/PR218.java deleted file mode 100644 index 14486dfad0a..00000000000 --- a/libjava/testsuite/libjava.lang/PR218.java +++ /dev/null @@ -1,28 +0,0 @@ -// Bug in gcj 20000427: Java executables can abort trying to access a null -// pointer in a leaf function. - -public class PR218 -{ - private int i = 5; - - public static void main(String[] args) - { - try - { - new PR218().foo(null); - } - catch (NullPointerException x) - { - System.out.println(x); - } - } - - void foo(PR218 e) - { - e.i += 4; - }; -} - -// Expected output: -// -// java.lang.NullPointerException diff --git a/libjava/testsuite/libjava.lang/PR218.out b/libjava/testsuite/libjava.lang/PR218.out deleted file mode 100644 index 7a72d865c98..00000000000 --- a/libjava/testsuite/libjava.lang/PR218.out +++ /dev/null @@ -1 +0,0 @@ -java.lang.NullPointerException diff --git a/libjava/testsuite/libjava.lang/PR242.java b/libjava/testsuite/libjava.lang/PR242.java deleted file mode 100644 index 6f74b462082..00000000000 --- a/libjava/testsuite/libjava.lang/PR242.java +++ /dev/null @@ -1,36 +0,0 @@ -class Base -{ - int someNum() - { - System.out.println ("ok"); - return 0; - } -} - -public class PR242 extends Base -{ - public static void main(String args[]) - { - new PR242(); - } - - PR242() - { - new Inner().a(); - } - - class Inner - { - public int dummy() - { - System.out.println ("wrong method called!!"); - return -1; - } - - public void a() - { - System.out.println ("..."); - System.out.println (someNum()); - } - } -} diff --git a/libjava/testsuite/libjava.lang/PR242.out b/libjava/testsuite/libjava.lang/PR242.out deleted file mode 100644 index 98b7db3968c..00000000000 --- a/libjava/testsuite/libjava.lang/PR242.out +++ /dev/null @@ -1,3 +0,0 @@ -... -ok -0 diff --git a/libjava/testsuite/libjava.lang/PR260.java b/libjava/testsuite/libjava.lang/PR260.java deleted file mode 100644 index 7bd49eb90a9..00000000000 --- a/libjava/testsuite/libjava.lang/PR260.java +++ /dev/null @@ -1,15 +0,0 @@ -class A -{ - static - { - System.out.println ("A initialized"); - } -} - -public class PR260 -{ - public static void main(String args[]) - { - Class klass = A.class; - } -} diff --git a/libjava/testsuite/libjava.lang/PR260.out b/libjava/testsuite/libjava.lang/PR260.out deleted file mode 100644 index cba223424e6..00000000000 --- a/libjava/testsuite/libjava.lang/PR260.out +++ /dev/null @@ -1 +0,0 @@ -A initialized diff --git a/libjava/testsuite/libjava.lang/PR55.java b/libjava/testsuite/libjava.lang/PR55.java deleted file mode 100644 index 66619bf2c51..00000000000 --- a/libjava/testsuite/libjava.lang/PR55.java +++ /dev/null @@ -1,9 +0,0 @@ -public class PR55 { - - // This demonstrates a bug in gcj - - public static void main(String[] argv){ - int i = 666; - System.out.println("The number "+i+" is "+ (""+i).length() +" digits wide"); - } -} diff --git a/libjava/testsuite/libjava.lang/PR55.out b/libjava/testsuite/libjava.lang/PR55.out deleted file mode 100644 index 510a24206f5..00000000000 --- a/libjava/testsuite/libjava.lang/PR55.out +++ /dev/null @@ -1 +0,0 @@ -The number 666 is 3 digits wide diff --git a/libjava/testsuite/libjava.lang/PR56.java b/libjava/testsuite/libjava.lang/PR56.java deleted file mode 100644 index 27f7c3021cd..00000000000 --- a/libjava/testsuite/libjava.lang/PR56.java +++ /dev/null @@ -1,8 +0,0 @@ -public final class PR56 { - public static void main(String[] args) { - Object o = args; - int[] a; - if (!(o instanceof int[]) || (a = (int[])o).length != 2) { - } - } -} diff --git a/libjava/testsuite/libjava.lang/PR56.out b/libjava/testsuite/libjava.lang/PR56.out deleted file mode 100644 index e69de29bb2d..00000000000 --- a/libjava/testsuite/libjava.lang/PR56.out +++ /dev/null diff --git a/libjava/testsuite/libjava.lang/Primes.java b/libjava/testsuite/libjava.lang/Primes.java deleted file mode 100644 index d6e4336726a..00000000000 --- a/libjava/testsuite/libjava.lang/Primes.java +++ /dev/null @@ -1,213 +0,0 @@ -// Primes.java
-
-/** Copyright 1998
- * Roedy Green
- * Canadian Mind Products
- * 5317 Barker Avenue
- * Burnaby, BC Canada V5H 2N6
- * tel: (604) 435-3016
- * mailto:roedy@mindprod.com
- * http://mindprod.com
- */
-// May be freely distributed for any purpose but military
-
-import java.util.BitSet;
-
-/**
- * @author Roedy Green
- * @version 1.10 1998 November 10
- * Calculate primes using Eratostheses Sieve.
- * Tell if a given number is prime.
- * Find a prime just below a given number.
- * Find a prime just above a given number.
- */
-
-/*
- * version 1.1 1998 November 10 - new address and phone.
- */
-class Primes
- {
-
- /**
- * constructors
- */
- Primes()
- {
- ensureCapacity(1000);
- }
-
- /**
- * @param capacity - largest number you will be asking if prime.
- * If give too small a number, it will automatically grow by
- * recomputing the sieve array.
- */
- Primes (int capacity)
- {
- ensureCapacity(capacity);
- }
-
- /**
- * @param candidate - is this a prime?
- */
- public boolean isPrime(int candidate)
- {
- ensureCapacity(candidate);
- if (candidate < 3) return candidate != 0;
- if (candidate % 2 == 0 ) return false;
- return !b.get(candidate/2);
- }
-
- /**
- * @return first prime higher than candidate
- */
- public int above(int candidate)
- {
- do
- {
- // see what we can find in the existing sieve
- for (int i=candidate+1; i<= sieveCapacity; i++)
- {
- if (isPrime(i)) return i;
- }
- // Keep building ever bigger sieves till we succeed.
- // The next prime P' is between P+2 and P^2 - 2.
- // However that is a rather pessimistic upper bound.
- // Ideally some theorem would tell us how big we need to build
- // to find one.
- ensureCapacity(Math.max(candidate*2, sieveCapacity*2));
- } // end do
- while (true);
- } // end above
-
- /**
- * @param return first prime less than candidate
- */
- public int below (int candidate)
- {
- for (candidate--; candidate > 0; candidate--)
- {
- if (isPrime(candidate)) return candidate;
- }
- // candidate was 1 or 0 or -ve
- return 0;
- }
-
- /**
- * calc all primes in the range 1..n,
- * not the first n primes.
- * @param n, highest candidate, not necessarily prime.
- * @return list of primes 1..n in an array
- */
- public final int[] getPrimes(int n)
- {
- // calculate the primes
- ensureCapacity(n);
-
- // pass 1: count primes
- int countPrimes = 0;
- for (int i = 0; i <= n; i++)
- {
- if (isPrime(i)) countPrimes++;
- }
-
- // pass 2: construct array of primes
- int [] primes = new int[countPrimes];
- countPrimes = 0;
- for (int i = 0; i <= n; i++)
- {
- if (isPrime(i)) primes[countPrimes++] = i;
- }
- return primes;
- } // end getPrimes
-
- /**
- * calculate the sieve, bit map of all primes 0..n
- * @param n highest number evalutated by the sieve, not necessarily prime.
- */
- private final void sieve ( int n )
- {
- // Presume BitSet b set is big enough for our purposes.
- // Presume all even numbers are already marked composite, effectively.
- // Presume all odd numbers are already marked prime (0 in bit map).
- int last = (int)(Math.sqrt(n))+1;
- for (int candidate = 3; candidate <= last; candidate += 2)
- {
- // only look at odd numbers
- if (!b.get(candidate/2) /* if candidate is prime */)
- {
- // Our candidate is prime.
- // Only bother to mark multiples of primes. Others already done.
- // no need to mark even multiples, already done
- int incr = candidate*2;
- for ( int multiple = candidate + incr; multiple < n; multiple += incr)
- {
- b.set(multiple/2); // mark multiple as composite
- } // end for multiple
- } // end if
- } // end for candidate
- // at this point our sieve b is correct, except for 0..2
- } // end sieve
-
- /**
- * Ensure have a sieve to tackle primes as big as n.
- * If we don't allocate a sieve big enough and calculate it.
- * @param n - ensure sieve big enough to evaluate n for primality.
- */
- private void ensureCapacity (int n)
- {
- if ( n > sieveCapacity )
- {
- b = new BitSet((n+1)/2);
- // starts out all 0, presume all numbers prime
- sieveCapacity = n;
- sieve(n);
- }
- // otherwise existing sieve is fine
- } // end ensureCapacity
-
- private int sieveCapacity;
- // biggest number we have computed in our sieve.
- // our BitSet array is indexed 0..N (odd only)
-
- private BitSet b; /* true for each odd number if is composite */
-
- /**
- * Demonstrate and test the methods
- */
- public static void main (String[] args)
- {
- // print primes 1..101
- Primes calc = new Primes(106);
- int[] primes = calc.getPrimes(101);
- for (int i=0; i<primes.length; i++)
- {
- System.out.println(primes[i]);
- }
-
- // demonstrate isPrime, above, below
- System.out.println(calc.isPrime(149));
- System.out.println(calc.below(149));
- System.out.println(calc.above(149));
-
- // print all the primes just greater than powers of 2
- calc = new Primes(10000000);
- for (int pow=8; pow < 10000000; pow*=2)
- System.out.println(calc.above(pow));
-
- // Validate that isPrime works by comparing it with brute force
- for (int i=3; i<=151; i++)
- {
- boolean prime = true;
- for (int j=2; j<i; j++)
- {
- if (i % j == 0 )
- {
- prime = false;
- break;
- }
- } // end for j
- if ( calc.isPrime(i) != prime ) System.out.println(i + " oops");
- } // end for i
-
- } // end main
-} // end Primes
diff --git a/libjava/testsuite/libjava.lang/Primes.out b/libjava/testsuite/libjava.lang/Primes.out deleted file mode 100644 index 279398b6233..00000000000 --- a/libjava/testsuite/libjava.lang/Primes.out +++ /dev/null @@ -1,51 +0,0 @@ -1 -2 -3 -5 -7 -11 -13 -17 -19 -23 -29 -31 -37 -41 -43 -47 -53 -59 -61 -67 -71 -73 -79 -83 -89 -97 -101 -true -139 -151 -11 -17 -37 -67 -131 -257 -521 -1031 -2053 -4099 -8209 -16411 -32771 -65537 -131101 -262147 -524309 -1048583 -2097169 -4194319 -8388617 diff --git a/libjava/testsuite/libjava.lang/Shazam.java b/libjava/testsuite/libjava.lang/Shazam.java deleted file mode 100644 index d3defc0652c..00000000000 --- a/libjava/testsuite/libjava.lang/Shazam.java +++ /dev/null @@ -1,18 +0,0 @@ -import java.io.*; - -public class Shazam { - - private static String shazam () - { - try { - return "shazam"; - } finally { - System.out.println ("The next line should say \"shazam\""); - } - } - - public static void main (String[] args) - { - System.out.println (shazam ()); - } -} diff --git a/libjava/testsuite/libjava.lang/Shazam.out b/libjava/testsuite/libjava.lang/Shazam.out deleted file mode 100644 index 42cc30d7239..00000000000 --- a/libjava/testsuite/libjava.lang/Shazam.out +++ /dev/null @@ -1,2 +0,0 @@ -The next line should say "shazam" -shazam diff --git a/libjava/testsuite/libjava.lang/StringBuffer_1.java b/libjava/testsuite/libjava.lang/StringBuffer_1.java deleted file mode 100644 index 14291225976..00000000000 --- a/libjava/testsuite/libjava.lang/StringBuffer_1.java +++ /dev/null @@ -1,124 +0,0 @@ -// Test StringBuffer.replace(), reverse(), insert(String), append(String), -// and delete(). - -public class StringBuffer_1 -{ - public static void main(String args[]) - { - StringBuffer sb = new StringBuffer("45"); - sb.insert(0, "123"); - sb.append("89"); - sb.insert(5, "6"); - sb.insert(6, '7'); - System.out.println (sb); - - sb.delete (3, 99); - - String foo = sb.toString(); - - System.out.println (foo); - sb.reverse(); - System.out.println (foo); - - System.out.println (sb); - sb = new StringBuffer("1234"); - System.out.println(sb.reverse()); - - sb = new StringBuffer("123456789"); - sb.append ("0"); - System.out.println(sb); - - sb.replace (2, 99, "foo"); - System.out.println (sb); - - sb = new StringBuffer("123456789"); - sb.replace (1, 1, "XX"); - System.out.println (sb); - - sb = new StringBuffer("123456789"); - sb.replace (0, 2, "XX"); - System.out.println (sb); - - sb = new StringBuffer("123456789"); - sb.replace (5, 9, "54321"); - System.out.println (sb); - - sb = new StringBuffer("123456789"); - - sb.delete (1,4); - System.out.println (sb); - - // Test bounds checks - try - { - sb.insert (-2, "x"); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.insert (96, "x"); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.delete (-2, 2); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.delete (96, 418); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.delete (4, 2); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.replace (-2, 2, "54321"); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.replace (4, 2, "54321"); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - - try - { - sb.replace (12, 18, "54321"); - } - catch (StringIndexOutOfBoundsException x) - { - System.out.println (x.getClass()); - } - } -} diff --git a/libjava/testsuite/libjava.lang/StringBuffer_1.out b/libjava/testsuite/libjava.lang/StringBuffer_1.out deleted file mode 100644 index cdc78ff0be7..00000000000 --- a/libjava/testsuite/libjava.lang/StringBuffer_1.out +++ /dev/null @@ -1,19 +0,0 @@ -123456789 -123 -123 -321 -4321 -1234567890 -12foo -1XX23456789 -XX3456789 -1234554321 -156789 -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException -class java.lang.StringIndexOutOfBoundsException diff --git a/libjava/testsuite/libjava.lang/Synch.java b/libjava/testsuite/libjava.lang/Synch.java deleted file mode 100644 index 15e2d26b4a5..00000000000 --- a/libjava/testsuite/libjava.lang/Synch.java +++ /dev/null @@ -1,17 +0,0 @@ -public class Synch -{ - public synchronized void s() - { - // This call to notify() isn't supposed to cause a - // java.lang.IllegalMonitorStateException. - notify (); - } - - public static void main (String[] args) - { - (new Synch()).s(); - System.out.println ("Ok"); - } -} - - diff --git a/libjava/testsuite/libjava.lang/Synch.out b/libjava/testsuite/libjava.lang/Synch.out deleted file mode 100644 index 7326d960397..00000000000 --- a/libjava/testsuite/libjava.lang/Synch.out +++ /dev/null @@ -1 +0,0 @@ -Ok diff --git a/libjava/testsuite/libjava.lang/Thread_1.java b/libjava/testsuite/libjava.lang/Thread_1.java deleted file mode 100644 index 42f8c840000..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_1.java +++ /dev/null @@ -1,184 +0,0 @@ -// Various thread tests. - -public class Thread_1 extends Thread -{ - // The group for the workers. - static ThreadGroup subgroup; - - // Which piece of test code to try. - static int test_case; - - // Names of the tests. - static final int JOIN_GOOD = 0; - static final int JOIN_TIMEOUT = 1; - static final int JOIN_INTERRUPTED = 2; - static final int THREAD_EXIT = 3; - - // True if this is normal; false if daemon. - boolean normal; - // The other thread in the test. - Thread_1 other; - // True when the thread has entered run(). - boolean started; - - public void run () - { - try - { - if (normal) - { - System.out.println ("test " + test_case); - // Tell the main thread to start the daemon thread. - synchronized (this) - { - started = true; - notify (); - } - // Now wait for daemon to start. - synchronized (other) - { - while (! other.started) - other.wait (); - } - switch (test_case) - { - case JOIN_GOOD: - other.join (); - System.out.println ("joined"); - break; - case JOIN_TIMEOUT: - other.join (10); - System.out.println (other.isAlive()); - other.join (); - break; - case JOIN_INTERRUPTED: - other.join (); - System.out.println ("joined"); - break; - case THREAD_EXIT: - // Nothing. - break; - - default: - System.out.println ("failure"); - break; - } - } - else - { - // Let the normal thread start first. - synchronized (other) - { - while (! other.started) - other.wait(); - } - // Tell normal thread that we've started. - synchronized (this) - { - started = true; - notify (); - } - switch (test_case) - { - case JOIN_GOOD: - System.out.println ("daemon done"); - break; - case JOIN_TIMEOUT: - sleep (50); - break; - case JOIN_INTERRUPTED: - other.interrupt (); - break; - case THREAD_EXIT: - // Wait for a while. However, don't wait indefinitely - // -- we want this thread to terminate so that the - // process won't hang if there is a bug. - sleep (10000); - System.out.println ("daemon still alive"); - break; - - default: - System.out.println ("failure"); - break; - } - } - } - catch (InterruptedException e) - { - System.out.println ("interrupted"); - } - } - - public void setOther (Thread_1 x) - { - other = x; - } - - Thread_1 (String name, boolean x) - { - super (subgroup, name); - normal = x; - started = false; - setDaemon (! normal); - } - - // Run a single test. - static Thread_1 doit (int what) - { - // FIXME: we used to just use the same threads each time. That - // didn't work -- must debug. - Thread_1 dt = new Thread_1 ("daemon", false); - Thread_1 nt = new Thread_1 ("normal", true); - - dt.setOther(nt); - nt.setOther(dt); - - test_case = what; - try - { - nt.start(); - dt.start(); - - // Don't wait for the threads if we're doing the exit test. - if (what != THREAD_EXIT) - { - nt.join (); - dt.join (); - } - } - catch (InterruptedException e) - { - System.out.println ("caught bad exception"); - } - - return dt; - } - - public static void main (String[] args) - { - subgroup = new ThreadGroup ("sub"); - - doit (JOIN_GOOD); - - System.out.println ("active count = " + subgroup.activeCount ()); - - Thread_1 dt = doit (JOIN_TIMEOUT); - // Make sure that joining a dead thread works. - System.out.println ("still alive: " + dt.isAlive ()); - try - { - dt.join (); - } - catch (InterruptedException e) - { - System.out.println ("exception caught"); - } - - doit (JOIN_INTERRUPTED); - - // Note: this test has a race conditoin. So we don't run it any - // more. - // This test must come last. - // doit (THREAD_EXIT); - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_1.out b/libjava/testsuite/libjava.lang/Thread_1.out deleted file mode 100644 index 78ac58a843b..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_1.out +++ /dev/null @@ -1,9 +0,0 @@ -test 0 -daemon done -joined -active count = 2 -test 1 -true -still alive: false -test 2 -interrupted diff --git a/libjava/testsuite/libjava.lang/Thread_Alive.java b/libjava/testsuite/libjava.lang/Thread_Alive.java deleted file mode 100644 index d97ea25c5d3..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Alive.java +++ /dev/null @@ -1,47 +0,0 @@ -// Test the status of the isAlive() flag before, during, and after thread -// execution. Check that thread's threadgroup is null after thread exits. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -public class Thread_Alive implements Runnable -{ - public static void main(String args[]) throws InterruptedException - { - Thread_Alive ta = new Thread_Alive(); - Thread t = new Thread(ta); - System.out.println(t.isAlive()); - t.start(); - System.out.println(t.isAlive()); - - Thread.sleep(100); - - synchronized (ta) - { - ta.notifyAll(); - } - - t.join(); - System.out.println(t.isAlive()); - - try - { - t.start(); - System.out.println("Error: dead thread can be restarted."); - } - catch (IllegalThreadStateException x) - { - System.out.println ("ok"); - } - - System.out.println(t.getThreadGroup()); - } - - public synchronized void run() - { - try - { - wait(); - } - catch (InterruptedException x) {} - } - -} diff --git a/libjava/testsuite/libjava.lang/Thread_Alive.out b/libjava/testsuite/libjava.lang/Thread_Alive.out deleted file mode 100644 index 1d1790d9207..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Alive.out +++ /dev/null @@ -1,5 +0,0 @@ -false -true -false -ok -null diff --git a/libjava/testsuite/libjava.lang/Thread_Interrupt.java b/libjava/testsuite/libjava.lang/Thread_Interrupt.java deleted file mode 100644 index 5412549e713..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Interrupt.java +++ /dev/null @@ -1,134 +0,0 @@ -// Test interrupt() behaviour on a thread in wait(), sleep(), and spinning -// in a loop. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -class Waiter extends Thread -{ - public synchronized void run() - { - System.out.println ("wait()"); - try - { - wait(); - System.out.println("Error: wait() completed normally."); - } - catch (InterruptedException x) - { - if (isInterrupted() || interrupted()) - System.out.println("Error: interrupt flag is still set."); - - } - System.out.println("interrupted - ok"); - } -} - -class Sleeper extends Thread -{ - public void run() - { - System.out.println ("sleep()"); - try - { - sleep(2000); - System.out.println("Error: sleep() completed normally."); - } - catch (InterruptedException x) - { - if (isInterrupted() || interrupted()) - System.out.println("Error: interrupt flag is still set."); - - System.out.println("interrupted - ok"); - } - } -} - -class Looper extends Thread -{ - public void run() - { - System.out.println ("Busy waiting"); - - int count = 0; - for (int i=0; i < 1000000; i++) - { - Thread.yield(); - count += 5; - if (isInterrupted ()) - break; - } - synchronized (this) - { - if (interrupted ()) - { - System.out.println ("interrupted - ok"); - if (isInterrupted () || interrupted ()) - System.out.println("Error: interrupt flag is still set."); - } - else - System.out.println ("Error: Busy wait was not interrupted."); - } - } -} - -class Joiner extends Thread -{ - public void run() - { - System.out.println("join()"); - try - { - join(2000); - System.out.println("Error: join() completed normally??!"); - } - catch (InterruptedException x) - { - if (isInterrupted() || interrupted()) - System.out.println("Error: interrupt flag is still set."); - - System.out.println("interrupted - ok"); - } - - } -} - -public class Thread_Interrupt -{ - public static void main(String args[]) - { - Waiter w = new Waiter(); - w.start (); - sleep_and_interrupt (w); - - Sleeper s = new Sleeper(); - s.start (); - sleep_and_interrupt (s); - - Looper l = new Looper (); - l.start (); - sleep_and_interrupt (l); - - Joiner j = new Joiner (); - j.start (); - sleep_and_interrupt (j); - } - - public static void sleep_and_interrupt(Thread t) - { - try - { - Thread.sleep (250); - t.interrupt (); - long t1 = System.currentTimeMillis(); - t.join (5000); - long time = System.currentTimeMillis() - t1; - if (time > 2900) - { - System.out.println ("Error: join() from main thread timed out"); - } - } - catch (InterruptedException x) - { - System.out.println("Error: main thread interrupted."); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Interrupt.out b/libjava/testsuite/libjava.lang/Thread_Interrupt.out deleted file mode 100644 index b3a5c3100b4..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Interrupt.out +++ /dev/null @@ -1,8 +0,0 @@ -wait() -interrupted - ok -sleep() -interrupted - ok -Busy waiting -interrupted - ok -join() -interrupted - ok diff --git a/libjava/testsuite/libjava.lang/Thread_Join.java b/libjava/testsuite/libjava.lang/Thread_Join.java deleted file mode 100644 index 711b05cf0f8..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Join.java +++ /dev/null @@ -1,68 +0,0 @@ -// Many threads join a single thread. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -class Sleeper implements Runnable -{ - int num = -1; - - public Sleeper(int num) - { - this.num = num; - } - - public void run() - { - System.out.println("sleeping"); - try - { - Thread.sleep(500); - } - catch (InterruptedException x) - { - System.out.println("sleep() interrupted"); - } - System.out.println("done"); - } -} - -class Joiner implements Runnable -{ - Thread join_target; - - public Joiner(Thread t) - { - this.join_target = t; - } - - public void run() - { - try - { - long start = System.currentTimeMillis(); - join_target.join(2000); - if ((System.currentTimeMillis() - start) > 1900) - System.out.println("Error: Join timed out"); - else - System.out.println("ok"); - } - catch (InterruptedException x) - { - System.out.println("join() interrupted"); - } - } - -} - -public class Thread_Join -{ - public static void main(String[] args) - { - Thread primary = new Thread(new Sleeper(1)); - primary.start(); - for (int i=0; i < 10; i++) - { - Thread t = new Thread(new Joiner(primary)); - t.start(); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Join.out b/libjava/testsuite/libjava.lang/Thread_Join.out deleted file mode 100644 index ac72ef3f942..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Join.out +++ /dev/null @@ -1,12 +0,0 @@ -sleeping -done -ok -ok -ok -ok -ok -ok -ok -ok -ok -ok diff --git a/libjava/testsuite/libjava.lang/Thread_Monitor.java b/libjava/testsuite/libjava.lang/Thread_Monitor.java deleted file mode 100644 index f1ffa674c37..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Monitor.java +++ /dev/null @@ -1,65 +0,0 @@ -// Test that monitor locks work and are recursive. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -class T implements Runnable -{ - public int count = 0; - Counter c; - - public T (Counter c) - { - this.c = c; - } - - public void run() - { - while (true) - { - // NOTE: double-synchronization here. - synchronized (c) - { - if (c.getCount() <= 100000) - count++; - else - break; - } - } - } -} - -class Counter -{ - int i = 0; - public synchronized int getCount () - { - return ++i; - } -} - -public class Thread_Monitor -{ - public static void main(String args[]) - { - Counter c = new Counter(); - T t1 = new T(c); - T t2 = new T(c); - - Thread th1 = new Thread(t1); - Thread th2 = new Thread(t2); - th1.start(); - th2.start(); - try - { - th1.join(); - th2.join(); - } - catch (InterruptedException x) - { - System.out.println("failed: Interrupted"); - } - if (t1.count + t2.count == 100000) - System.out.println ("ok"); - else - System.out.println ("failed: total count incorrect"); - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Monitor.out b/libjava/testsuite/libjava.lang/Thread_Monitor.out deleted file mode 100644 index 9766475a418..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Monitor.out +++ /dev/null @@ -1 +0,0 @@ -ok diff --git a/libjava/testsuite/libjava.lang/Thread_Sleep.java b/libjava/testsuite/libjava.lang/Thread_Sleep.java deleted file mode 100644 index e7f4a81532c..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Sleep.java +++ /dev/null @@ -1,24 +0,0 @@ -// Test that Thread.sleep() works. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -public class Thread_Sleep -{ - public static void main(String args[]) - { - try - { - long start = System.currentTimeMillis(); - System.out.println("sleeping"); - Thread.sleep(1000); - long end = System.currentTimeMillis(); - if ((end - start) > 1100 || (end - start) < 990) - System.out.println ("failed"); - else - System.out.println("ok"); - } - catch (InterruptedException x) - { - System.out.println("error: Thread interrupted."); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Sleep.out b/libjava/testsuite/libjava.lang/Thread_Sleep.out deleted file mode 100644 index 1622a213afa..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Sleep.out +++ /dev/null @@ -1,2 +0,0 @@ -sleeping -ok diff --git a/libjava/testsuite/libjava.lang/Thread_Wait.java b/libjava/testsuite/libjava.lang/Thread_Wait.java deleted file mode 100644 index 5ca12ed5d4b..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait.java +++ /dev/null @@ -1,49 +0,0 @@ -// Test basic thread creation and wait/notify functionality. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -public class Thread_Wait implements Runnable -{ - public static void main(String args[]) - { - new Thread_Wait(); - } - - public Thread_Wait() - { - System.out.println("creating thread"); - Thread t = new Thread(this); - t.start(); - - try - { - Thread.sleep(100); - } - catch (Exception x) - { - System.out.println("exception occured: " + x); - } - - synchronized (this) - { - System.out.println("notifying other thread"); - notify(); - } - } - - public void run() - { - System.out.println ("new thread running"); - synchronized (this) - { - try - { - wait(); - } - catch (Exception x) - { - System.out.println("exception occured: " + x); - } - } - System.out.println ("thread notified okay"); - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Wait.out b/libjava/testsuite/libjava.lang/Thread_Wait.out deleted file mode 100644 index 09cbb785c04..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait.out +++ /dev/null @@ -1,4 +0,0 @@ -creating thread -new thread running -notifying other thread -thread notified okay diff --git a/libjava/testsuite/libjava.lang/Thread_Wait_2.java b/libjava/testsuite/libjava.lang/Thread_Wait_2.java deleted file mode 100644 index a03cb943812..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait_2.java +++ /dev/null @@ -1,144 +0,0 @@ -// Create many threads waiting on a monitor. Interrupt some of them. Do the -// others wake up correctly with notify() and/or notifyAll()? -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -import java.util.Vector; - -class Waiter extends Thread -{ - Object monitor; - int thread_num; - boolean interrupted = false; - boolean notified = false; - - Waiter (Object monitor, int thread_num) - { - this.monitor = monitor; - this.thread_num = thread_num; - } - - public void run() - { - synchronized (monitor) - { - try - { - monitor.wait(); - notified = true; - } - catch (InterruptedException x) - { - interrupted = true; - } - } - - } -} - -public class Thread_Wait_2 -{ - static Vector threads; - static Object monitor = new Object(); - - static final int NUM_THREADS = 10; - - public static void main(String args[]) - { - - - try - { - makeThreads (); - - Thread.sleep(250); - - // Interrupt a few threads... - Waiter i1 = (Waiter) threads.elementAt(3); - Waiter i2 = (Waiter) threads.elementAt(4); - Waiter i3 = (Waiter) threads.elementAt(9); - i1.interrupt(); - i2.interrupt(); - i3.interrupt(); - - // Call notify the exact number of times required to wake the remaining - // threads. - synchronized (monitor) - { - for (int i=0; i < NUM_THREADS -3 ; i++) - { - monitor.notify (); - } - } - - joinAll(); - printStatus(); - - // Repeat all the above, but use notifyAll() instead. - makeThreads(); - - Thread.sleep(250); - - // Interrupt a few threads... - i1 = (Waiter) threads.elementAt(0); - i2 = (Waiter) threads.elementAt(1); - i3 = (Waiter) threads.elementAt(9); - i1.interrupt(); - i2.interrupt(); - i3.interrupt(); - - // Call notifyAll to wake the remaining threads. - synchronized (monitor) - { - monitor.notifyAll (); - } - - joinAll(); - printStatus(); - - } - catch (InterruptedException x) - { - System.out.println (x); - } - - - } - - static void makeThreads() - { - threads = new Vector(NUM_THREADS); - - for (int i=0; i < NUM_THREADS; i++) - { - Waiter w = new Waiter(monitor, i); - w.start(); - threads.addElement(w); - } - } - - static void joinAll() - { - try - { - for (int i=0; i < threads.size(); i++) - { - Thread t = (Thread) threads.elementAt(i); - t.join(); - } - } - catch (InterruptedException x) {} - } - - static void printStatus() - { - for (int i=0; i < threads.size(); i++) - { - Waiter w = (Waiter) threads.elementAt(i); - if (w.interrupted) - System.out.println (i + " interrupted."); - if (w.notified) - System.out.println (i + " notified."); - } - } - -} diff --git a/libjava/testsuite/libjava.lang/Thread_Wait_2.out b/libjava/testsuite/libjava.lang/Thread_Wait_2.out deleted file mode 100644 index 4a71f07f900..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait_2.out +++ /dev/null @@ -1,20 +0,0 @@ -0 notified. -1 notified. -2 notified. -3 interrupted. -4 interrupted. -5 notified. -6 notified. -7 notified. -8 notified. -9 interrupted. -0 interrupted. -1 interrupted. -2 notified. -3 notified. -4 notified. -5 notified. -6 notified. -7 notified. -8 notified. -9 interrupted. diff --git a/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.java b/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.java deleted file mode 100644 index be7b5551614..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.java +++ /dev/null @@ -1,76 +0,0 @@ -// Create two threads waiting on a monitor. Interrupt one of them. Does the -// other wake up correctly? -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -class Waiter extends Thread -{ - Object monitor; - int thread_num; - boolean interrupted = false; - boolean notified = false; - - Waiter (Object monitor, int thread_num) - { - this.monitor = monitor; - this.thread_num = thread_num; - } - - public void run() - { - synchronized (monitor) - { - System.out.println ("Thread waiting."); - try - { - long start = System.currentTimeMillis(); - monitor.wait(1000); - long time = System.currentTimeMillis() - start; - if (time > 990) - System.out.println ("Error: wait on thread " + thread_num - + " timed out."); - else - notified = true; - } - catch (InterruptedException x) - { - interrupted = true; - } - } - - } -} - -public class Thread_Wait_Interrupt -{ - public static void main(String args[]) - { - Object monitor = new Object(); - Waiter w1 = new Waiter(monitor, 1); - Waiter w2 = new Waiter(monitor, 2); - w1.start(); - w2.start(); - try - { - Thread.sleep(250); - - synchronized (monitor) - { - w1.interrupt(); - monitor.notify(); - } - - w1.join(); - w2.join(); - System.out.println("join ok"); - System.out.println("Thread 1 " + - (w1.interrupted ? "interrupted ok" : "error")); - System.out.println("Thread 2 " + - (w2.notified ? "notified ok" : "error")); - - } - catch (InterruptedException x) - { - System.out.println (x); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.out b/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.out deleted file mode 100644 index 4f3b1667814..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait_Interrupt.out +++ /dev/null @@ -1,5 +0,0 @@ -Thread waiting. -Thread waiting. -join ok -Thread 1 interrupted ok -Thread 2 notified ok diff --git a/libjava/testsuite/libjava.lang/Throw_1.java b/libjava/testsuite/libjava.lang/Throw_1.java deleted file mode 100644 index 4a0780aec06..00000000000 --- a/libjava/testsuite/libjava.lang/Throw_1.java +++ /dev/null @@ -1,25 +0,0 @@ -// Some tests of `throw'. - -public class Throw_1 -{ - public static Throwable get () - { - return null; - } - - public static void main (String[] args) - { - Throwable t = get (); - try - { - throw t; - } - catch (NullPointerException y) - { - } - catch (Throwable x) - { - System.out.println ("no"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/Throw_1.out b/libjava/testsuite/libjava.lang/Throw_1.out deleted file mode 100644 index e69de29bb2d..00000000000 --- a/libjava/testsuite/libjava.lang/Throw_1.out +++ /dev/null diff --git a/libjava/testsuite/libjava.lang/anfi.java b/libjava/testsuite/libjava.lang/anfi.java deleted file mode 100644 index d9e7de75286..00000000000 --- a/libjava/testsuite/libjava.lang/anfi.java +++ /dev/null @@ -1,33 +0,0 @@ -// Class anfi -// Generated on Sat Jan 29 16:06:33 PST 2000 -// Anonymous with access to outer context locals - -class anfi { - - itf foo (final String s, final int i) { - return new itf () { - String buff = s+" "+i; - public void setString (String s) { buff = s+" "+i; } - public String getString () { return buff; } - }; - } - - void test () { - itf x = foo ("Hello", 123); - System.out.println (x.getString ()); - x.setString ("Frinkahedron"); - System.out.println (x.getString ()); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `anfi'..."); - new anfi().test(); - } -} - -interface itf { - void setString (String s); - String getString(); - String buff = null; -} diff --git a/libjava/testsuite/libjava.lang/anfi.out b/libjava/testsuite/libjava.lang/anfi.out deleted file mode 100644 index 52ac97cf992..00000000000 --- a/libjava/testsuite/libjava.lang/anfi.out +++ /dev/null @@ -1,3 +0,0 @@ -Testing class `anfi'... -Hello 123 -Frinkahedron 123 diff --git a/libjava/testsuite/libjava.lang/anon.java b/libjava/testsuite/libjava.lang/anon.java deleted file mode 100644 index c24b4f0a2ba..00000000000 --- a/libjava/testsuite/libjava.lang/anon.java +++ /dev/null @@ -1,52 +0,0 @@ -// Class anon -// Generated on Wed Dec 29 10:07:09 PST 1999 -// - - -interface itf {int count = 0;void setCount (int i);int getCount ();} - -class anon { - - int count = 34; - - class x implements itf { - int count = 3; - public void setCount (int j) { } - public int getCount () { return count*3; } - } - - - itf foo () { - class y implements itf { - int count = 3; - public void setCount (int j) { count = j; } - public int getCount () { return count+1; } - } - return new y (); - } - - itf bar () { - return new itf () { - // The class defined right here will implement `itf' - int count = 5; - public void setCount (int j) { count = j; } - public int getCount () { return count+1; } - } ; - } - - void test () { - itf a = foo (); - itf b = bar (); - x c = this.new x (); - System.out.println (a.getCount ()); - System.out.println (b.getCount ()); - System.out.println (c.getCount ()); - System.out.println (this.count); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `anon'..."); - new anon ().test (); - } -} diff --git a/libjava/testsuite/libjava.lang/anon.out b/libjava/testsuite/libjava.lang/anon.out deleted file mode 100644 index 3b397bbe5aa..00000000000 --- a/libjava/testsuite/libjava.lang/anon.out +++ /dev/null @@ -1,5 +0,0 @@ -Testing class `anon'... -4 -6 -9 -34 diff --git a/libjava/testsuite/libjava.lang/anon2.java b/libjava/testsuite/libjava.lang/anon2.java deleted file mode 100644 index a14eef88e05..00000000000 --- a/libjava/testsuite/libjava.lang/anon2.java +++ /dev/null @@ -1,50 +0,0 @@ -// Class anon2 -// Generated on Wed Dec 29 10:07:09 PST 1999 -// - - -class anon2 { - - int count = 34; - int field; - - anon2 () { System.out.println ("anon2()"); } - - anon2 (foobar x) { - System.out.println ("Yikes!"+x.zoink()); - } - - anon2 foo () { - class y extends anon2 { - int count = 3; - public void setCount (int j) { count = j; } - public int getCount () { return count+1; } - y (int i) { System.out.println ("y(int)"); } - } - return new y (3); - } - - anon2 bar () { - foobar xyz = new foobar (); - return new anon2 (xyz) { - int count = 5; - public void setCount (int j) { field = 3; count = j; } - public int getCount () { return count+1; } - } ; - } - - void test () { - anon2 b = bar (); - anon2 c = foo (); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `anon2'..."); - new anon2 ().test (); - } -} - -class foobar { - public String zoink() { return " zoinked"; } -} diff --git a/libjava/testsuite/libjava.lang/anon2.out b/libjava/testsuite/libjava.lang/anon2.out deleted file mode 100644 index 2a125749190..00000000000 --- a/libjava/testsuite/libjava.lang/anon2.out +++ /dev/null @@ -1,5 +0,0 @@ -Testing class `anon2'... -anon2() -Yikes! zoinked -anon2() -y(int) diff --git a/libjava/testsuite/libjava.lang/anon3.java b/libjava/testsuite/libjava.lang/anon3.java deleted file mode 100644 index 0af8804d801..00000000000 --- a/libjava/testsuite/libjava.lang/anon3.java +++ /dev/null @@ -1,28 +0,0 @@ -// Class anon3 -// Generated on Wed Dec 29 10:07:09 PST 1999 -// - - -class anon3 { - - itf bar () { - return new itf () { - int count = 5; - public void setCount (int j) { count = 3; } - public int getCount () { return count; } - } ; - } - - void test () { - itf x = bar (); - System.out.println (x.getCount ()); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `anon3'..."); - new anon3 ().test (); - } -} - -interface itf { void setCount (int j); int getCount(); int count = 0; } diff --git a/libjava/testsuite/libjava.lang/anon3.out b/libjava/testsuite/libjava.lang/anon3.out deleted file mode 100644 index 2e59ff3c4ac..00000000000 --- a/libjava/testsuite/libjava.lang/anon3.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `annon3'... -5 diff --git a/libjava/testsuite/libjava.lang/anon4.java b/libjava/testsuite/libjava.lang/anon4.java deleted file mode 100644 index 4fd5262272e..00000000000 --- a/libjava/testsuite/libjava.lang/anon4.java +++ /dev/null @@ -1,30 +0,0 @@ -// Class anon4 -// Generated on Wed Dec 29 10:07:09 PST 1999 -// - - -class anon4 { - - private int field = 3; - - itf bar () { - return new itf () { - int count = 5; - public void setCount (int j) { count = 3+field; } - public int getCount () { return count+field; } - } ; - } - - void test () { - itf x = bar (); - System.out.println (x.getCount ()); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `anon4'..."); - new anon4 ().test (); - } -} - -interface itf { void setCount (int j); int getCount(); int count = 0; } diff --git a/libjava/testsuite/libjava.lang/anon4.out b/libjava/testsuite/libjava.lang/anon4.out deleted file mode 100644 index ff8b8916e98..00000000000 --- a/libjava/testsuite/libjava.lang/anon4.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `anon4'... -8 diff --git a/libjava/testsuite/libjava.lang/anonarray.java b/libjava/testsuite/libjava.lang/anonarray.java deleted file mode 100644 index 8239c51f932..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray.java +++ /dev/null @@ -1,22 +0,0 @@ -// Class anonarray -// Generated on Tue Feb 1 16:11:29 PST 2000 -// Simple anonymous array, of primitive types. - -class anonarray { - - static void foo (int [][] x) { - for (int i = 0; i < x.length; i++) - { - for (int j = 0; j < x[i].length; j++) - System.out.print (x[i][j]); - System.out.println(); - } - } - - public static void main (String[] arg) - { - foo (new int[][] {{2,3},{5,7}}); - System.out.println ((new int [][] {{11,13},{17,19}}).length); - System.out.println ((new int [][] {{23,29},{31,37}})[0][1]); - } -} diff --git a/libjava/testsuite/libjava.lang/anonarray.out b/libjava/testsuite/libjava.lang/anonarray.out deleted file mode 100644 index 4ad3f56ef2f..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray.out +++ /dev/null @@ -1,4 +0,0 @@ -23 -57 -2 -29 diff --git a/libjava/testsuite/libjava.lang/anonarray2.java b/libjava/testsuite/libjava.lang/anonarray2.java deleted file mode 100644 index 46df5e71130..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray2.java +++ /dev/null @@ -1,22 +0,0 @@ -// Class anonarray2 -// Generated on Tue Feb 1 21:14:06 PST 2000 -// Anonymous array, with a non primitive type. - -class anonarray2 { - - static void foo (String [][] x) { - for (int i = 0; i < x.length; i++) - { - for (int j = 0; j < x[i].length; j++) - System.out.print (x[i][j]); - System.out.println(); - } - } - - public static void main (String[] arg) - { - foo (new String[][] {{"2","3"},{"5","7"}}); - System.out.println ((new String [][] {{"11","13"},{"17","19"}}).length); - System.out.println ((new String [][] {{"23","29"},{"31","37"}})[0][1]); - } -} diff --git a/libjava/testsuite/libjava.lang/anonarray2.out b/libjava/testsuite/libjava.lang/anonarray2.out deleted file mode 100644 index 4ad3f56ef2f..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray2.out +++ /dev/null @@ -1,4 +0,0 @@ -23 -57 -2 -29 diff --git a/libjava/testsuite/libjava.lang/anonarray3.java b/libjava/testsuite/libjava.lang/anonarray3.java deleted file mode 100644 index 264365b1359..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray3.java +++ /dev/null @@ -1,13 +0,0 @@ -// Class anonarray3 -// Generated on Tue Feb 8 19:18:10 PST 2000 -// - -class anonarray3 { - private static final int[] foo (int x) { - return new int[] { x+1 }; - } - public static void main (String[] arg) - { - System.out.println (foo (34)[0]); - } -} diff --git a/libjava/testsuite/libjava.lang/anonarray3.out b/libjava/testsuite/libjava.lang/anonarray3.out deleted file mode 100644 index 8f92bfdd497..00000000000 --- a/libjava/testsuite/libjava.lang/anonarray3.out +++ /dev/null @@ -1 +0,0 @@ -35 diff --git a/libjava/testsuite/libjava.lang/direct_read.java b/libjava/testsuite/libjava.lang/direct_read.java deleted file mode 100644 index 57342849353..00000000000 --- a/libjava/testsuite/libjava.lang/direct_read.java +++ /dev/null @@ -1,27 +0,0 @@ -// Class direct_read -// Generated on Sat Nov 13 23:26:34 UTC 1999 -// - -class direct_read { - - int foo; - - class direct_read_inner { - void test () { - int x = foo; - System.out.println ("x="+x); - } - } - - void foo () - { - foo = 670; - direct_read_inner inn = this.new direct_read_inner (); - inn.test (); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `direct_read'..."); - new direct_read().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/direct_read.out b/libjava/testsuite/libjava.lang/direct_read.out deleted file mode 100644 index f8f3c647521..00000000000 --- a/libjava/testsuite/libjava.lang/direct_read.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `direct_read'... -x=670 diff --git a/libjava/testsuite/libjava.lang/direct_write.java b/libjava/testsuite/libjava.lang/direct_write.java deleted file mode 100644 index 2745f8601c8..00000000000 --- a/libjava/testsuite/libjava.lang/direct_write.java +++ /dev/null @@ -1,27 +0,0 @@ -// Class direct_write -// Generated on Mon Nov 15 17:10:56 UTC 1999 -// - -class direct_write { - - int foo; - - class direct_write_inner { - void test () { - foo = 670; - } - } - - void foo () - { - foo = 650; - direct_write_inner inn = this.new direct_write_inner (); - inn.test (); - System.out.println ("foo="+foo); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `direct_write'..."); - new direct_write().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/direct_write.out b/libjava/testsuite/libjava.lang/direct_write.out deleted file mode 100644 index b4ff636ee97..00000000000 --- a/libjava/testsuite/libjava.lang/direct_write.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `direct_write'... -foo=670 diff --git a/libjava/testsuite/libjava.lang/err1.java b/libjava/testsuite/libjava.lang/err1.java deleted file mode 100644 index 7530252c86f..00000000000 --- a/libjava/testsuite/libjava.lang/err1.java +++ /dev/null @@ -1,25 +0,0 @@ -/*-------------------------------------------------------------------------*/ -/* File name : err1.java */ -/* : */ -/* Cause : When I make class-type Object. */ -/* : */ -/* Message : Internal compiler error: program jc1 got */ -/* : fatal signal 11 */ -/*-------------------------------------------------------------------------*/ - -class A { - int counter = 100; -} - -public class err1 { - public static void main(String[] args) { - A array[] = new A[10]; //err - array[0] = new A(); - - if ( array[0].counter == 100 ) { - System.out.println("OK"); - } else { - System.out.println("NG:[100]-->[" +array[0].counter+ "]"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/err1.out b/libjava/testsuite/libjava.lang/err1.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err1.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err10.java b/libjava/testsuite/libjava.lang/err10.java deleted file mode 100644 index afdb4e05504..00000000000 --- a/libjava/testsuite/libjava.lang/err10.java +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err10.java */ -/* : */ -/* Cause : Operator >>> doesn't work correctly when value is negative. */ -/* : */ -/* Message : NG : a = -2 */ -/*--------------------------------------------------------------------------*/ - -public class err10 { - public static void main(String[] args) { - int a = -3; - - a = a>>>1; - - if ( a == 2147483646 ) { - System.out.println("OK"); - } else { - System.out.println("NG:[2147483646]-->[" +a+ "]"); - } - - } -} - diff --git a/libjava/testsuite/libjava.lang/err10.out b/libjava/testsuite/libjava.lang/err10.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err10.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err11.java b/libjava/testsuite/libjava.lang/err11.java deleted file mode 100644 index 7b1d0c7f14e..00000000000 --- a/libjava/testsuite/libjava.lang/err11.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err11.java */ -/* : */ -/* Cause : If I declare both array which have more than 10 element */ -/* : and switch statement, make error. */ -/* : */ -/* Message : err11.java:1: Missing class name. */ -/* : public class err11 */ -/* : ^ */ -/* : err11.java:1: Class or interface declaration expected. */ -/* : public class err11 */ -/* : ^ */ -/* : 2 errors */ -/*--------------------------------------------------------------------------*/ - -public class err11 -{ - public static void main(String args[]) - { - int i; - short ary1[] = {12,23,34,45,56,67,78,89,90,111}; - - for(i=0; i<10; i++) { - switch(ary1[i]) { - case 111 : System.out.println("OK"); - default : break; - } - } - } -} diff --git a/libjava/testsuite/libjava.lang/err11.out b/libjava/testsuite/libjava.lang/err11.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err11.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err12.java b/libjava/testsuite/libjava.lang/err12.java deleted file mode 100644 index 9631b3de6af..00000000000 --- a/libjava/testsuite/libjava.lang/err12.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err12.java */ -/* : */ -/* Cause : Cast negative floating point to char makes error */ -/* : */ -/* Message : Internal compiler error in functi on convert_move */ -/*--------------------------------------------------------------------------*/ - -public class err12 { - public static void main(String[] args){ - char x1, x2; - - float y = -10000f; - - x1 = (char)y; // err - x2 = (char)-10000f; // ok - - if ( x1 == x2 ) { - System.out.println("OK"); - } else { - System.out.println("NG"); - System.out.println("x1:[65520]-->[" +(x1-0)+"]"); - System.out.println("x2:[65520]-->[" +(x2-0)+"]"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err12.out b/libjava/testsuite/libjava.lang/err12.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err12.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err13.java b/libjava/testsuite/libjava.lang/err13.java deleted file mode 100644 index d946d610488..00000000000 --- a/libjava/testsuite/libjava.lang/err13.java +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err13.java */ -/* : */ -/* Cause : Conversion from zero to String type is not correct. */ -/* : */ -/* Message : NG : test */ -/*--------------------------------------------------------------------------*/ - -public class err13 { - public static void main(String[] args) { - String s = "test"; - s += 0; - - if ( s.equals("test0") ) { - System.out.println("OK"); - } else { - System.out.println("NG : " +s); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err13.out b/libjava/testsuite/libjava.lang/err13.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err13.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err2.java b/libjava/testsuite/libjava.lang/err2.java deleted file mode 100644 index deeddf633e9..00000000000 --- a/libjava/testsuite/libjava.lang/err2.java +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err2.java */ -/* : */ -/* Cause : Operator "+=" error in char,byte,short type */ -/* : */ -/* Message : err2.java: In class `err2': */ -/* : err2.java: In method `main(java.lang.String[])': */ -/* : err2.java:22: Incompatible type for `='. Explicit cast */ -/* : needed to convert `int' to `byte'. */ -/* : a %= b; */ -/* : ^ */ -/* : 1 error */ -/*--------------------------------------------------------------------------*/ - -public class err2 { - public static void main(String[] args) { - byte a = -16; - byte b = 10; - - a %= b; - - if ( a == -6 ) { - System.out.println("OK"); - } else { - System.out.println("a = " +a); - } - } -} diff --git a/libjava/testsuite/libjava.lang/err2.out b/libjava/testsuite/libjava.lang/err2.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err2.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err3.java b/libjava/testsuite/libjava.lang/err3.java deleted file mode 100644 index 17535b8500f..00000000000 --- a/libjava/testsuite/libjava.lang/err3.java +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err3.java */ -/* : */ -/* Cause : Evaluation sequence of the formula which used */ -/* : the substitution operator is not performed correctly. */ -/* : */ -/* Message : NG1:[27]-->[9] */ -/* : NG2:[27]-->[9] */ -/* : */ -/* Note : JLS 15.6 Evaluation Order (p305) */ -/* S15.6.1 Evaluate Left-Hand Operand First */ -/* : A formula should be evaluated to 9*3 instead of 3*3. */ -/*--------------------------------------------------------------------------*/ - -public class err3 { - public static void main(String[] args) { - int x = 9; - x *= (x = 3); - if ( x == 27 ) { - System.out.println("OK1"); - } else { - System.out.println("NG1:[27]-->["+x+"]"); - } - - int y = 9; - y = y * (y = 3); - if ( y == 27 ) { - System.out.println("OK2"); - } else { - System.out.println("NG2:[27]-->["+y+"]"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err3.out b/libjava/testsuite/libjava.lang/err3.out deleted file mode 100644 index dfa480ce6e5..00000000000 --- a/libjava/testsuite/libjava.lang/err3.out +++ /dev/null @@ -1,2 +0,0 @@ -OK1 -OK2 diff --git a/libjava/testsuite/libjava.lang/err4.java b/libjava/testsuite/libjava.lang/err4.java deleted file mode 100644 index ad908e27531..00000000000 --- a/libjava/testsuite/libjava.lang/err4.java +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* file_name : err4.java */ -/* : */ -/* Cause : Evaluation of the array which used the substitution */ -/* : operator is not performed correctly. */ -/* : */ -/* Message : NG1:[27}-->[9.0] */ -/* : NG1:[27}-->[9.0] */ -/*--------------------------------------------------------------------------*/ - -public class err4 { - public static void main(String[] args) { - - // TEST1 - float []a = {9f}; - a[0] *= (a[0] = 3f); - - if ( a[0] == 27 ) { - System.out.println("OK1"); - } else { - System.out.println("NG1:[27}-->["+a[0]+"]"); - } - - //TEST2 - float [] b = {9f}; - b[0] = (float)(b[0] * (b[0] = 3f)); - if ( b[0] == 27 ) { - System.out.println("OK1"); - } else { - System.out.println("NG1:[27}-->["+b[0]+"]"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err4.out b/libjava/testsuite/libjava.lang/err4.out deleted file mode 100644 index f6e108f6d0c..00000000000 --- a/libjava/testsuite/libjava.lang/err4.out +++ /dev/null @@ -1,2 +0,0 @@ -OK1 -OK1 diff --git a/libjava/testsuite/libjava.lang/err5.java b/libjava/testsuite/libjava.lang/err5.java deleted file mode 100644 index f9e95b63504..00000000000 --- a/libjava/testsuite/libjava.lang/err5.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* file_name : err5.java */ -/* : */ -/* Cause : Evaluation order of method argument is not correct. */ -/* : */ -/* Message : NG */ -/* : a:[1]-->[2] */ -/* : b:[3]-->[3] */ -/* : c:[2]-->[2] */ -/* : */ -/* Note : JLS 15.6 Evaluation Order */ -/* S15.6.4 Argument Lists are Evaluated Left-to-Right(p309) */ -/* [Each argument expression appears to be fully evaluated */ -/* before any part of any argument expression to its right.] */ -/*--------------------------------------------------------------------------*/ - -public class err5 { - public static void main(String[] args) { - int x = 1; - - err5 obj = new err5(); - obj.print(x, x = 3, x = 2); - } - - void print(int a, int b, int c) { - if ( a == 1 && b == 3 && c == 2 ) { - System.out.println("OK"); - } else { - System.out.println("NG"); - System.out.println("a:[1]-->["+a+"]"); - System.out.println("b:[3]-->["+b+"]"); - System.out.println("c:[2]-->["+c+"]"); - } - } -} diff --git a/libjava/testsuite/libjava.lang/err5.out b/libjava/testsuite/libjava.lang/err5.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err5.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err6.java b/libjava/testsuite/libjava.lang/err6.java deleted file mode 100644 index 4b06c6caa7a..00000000000 --- a/libjava/testsuite/libjava.lang/err6.java +++ /dev/null @@ -1,26 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err6.java */ -/* : */ -/* Cause : Array evaluation order */ -/* : */ -/* Message : NG:[1]-->[4] */ -/* : */ -/* Note : JLS 15.9 Array Creation Expressions (p315--) */ -/* : p318 line3 */ -/* :[Each dimension expression is fully evaluated */ -/* : before any part of any dimension expression to its right.] */ -/*--------------------------------------------------------------------------*/ - -public class err6 { - public static void main(String[] args) { - int[] x = { 10, 11, 12, 1, 14 }; - int[] y = { 1, 2, 3, 4, 5, 6 }; - - if ( x[(x=y)[2]] == 1 ) { - System.out.println("OK"); - } else { - System.out.println("NG:[1]-->[" +x[(x=y)[2]]+ "]"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err6.out b/libjava/testsuite/libjava.lang/err6.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err6.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err7.java b/libjava/testsuite/libjava.lang/err7.java deleted file mode 100644 index 11f4e8d0b18..00000000000 --- a/libjava/testsuite/libjava.lang/err7.java +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err7.java */ -/* : */ -/* Cause : When exists both array (more than 10 elements) and */ -/* "for" or "while" or "do while" statement , error. */ -/* : */ -/* Message : /var/tmp/cc1oQM8i.s: Assembler messages: */ -/* : /var/tmp/cc1oQM8i.s:243: Fatal error: Symbol $L2 already def*/ -/* : fined. */ -/*--------------------------------------------------------------------------*/ - -public class err7 { - public static void main(String[] args) { - int[] ary = {0,1,2,3,4,5,6,7,8,9}; - - while ( true ) { - break; - } - - System.out.println("OK"); - } -} - diff --git a/libjava/testsuite/libjava.lang/err7.out b/libjava/testsuite/libjava.lang/err7.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err7.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err8.java b/libjava/testsuite/libjava.lang/err8.java deleted file mode 100644 index 220b2ac4fad..00000000000 --- a/libjava/testsuite/libjava.lang/err8.java +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err8.java */ -/* : */ -/* Cause : When "do while" statement has only "break", error. */ -/* : */ -/* Message : err8.java: In class `err8': xxxxxx */ -/* : err8.java: In method `main(java.lang.String[])': */ -/* : err8.java:20: Unreachable statement. */ -/* : } while (true) ; */ -/* : ^ */ -/* : 1 error */ -/*--------------------------------------------------------------------------*/ - -public class err8 { - public static void main(String[] args) { - do { - break; - } while (true) ; - - System.out.println("OK"); - } -} - diff --git a/libjava/testsuite/libjava.lang/err8.out b/libjava/testsuite/libjava.lang/err8.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err8.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/err9.java b/libjava/testsuite/libjava.lang/err9.java deleted file mode 100644 index a6edd71980e..00000000000 --- a/libjava/testsuite/libjava.lang/err9.java +++ /dev/null @@ -1,32 +0,0 @@ -/*--------------------------------------------------------------------------*/ -/* File name : err9.java */ -/* : */ -/* Cause : When I use "labeled continue" in "for"statement, error */ -/* : */ -/* Message : In class `err9': */ -/* : In method `main(java.lang.String[])': */ -/* : 22: `continue' must be in loop. */ -/* : continue movehere; */ -/* : ^ */ -/* : 1 error */ -/*--------------------------------------------------------------------------*/ - -public class err9 { - public static void main(String[] args) { - int y = 0; - - movehere: for ( int x = 0; x < 10; x++ ) { - if ( x > 2 ) { - continue movehere; - } - y++; - } - - if ( y == 3 ) { - System.out.println("OK"); - } else { - System.out.println("NG:[3]-->[" +y+ "]"); - } - } -} - diff --git a/libjava/testsuite/libjava.lang/err9.out b/libjava/testsuite/libjava.lang/err9.out deleted file mode 100644 index d86bac9de59..00000000000 --- a/libjava/testsuite/libjava.lang/err9.out +++ /dev/null @@ -1 +0,0 @@ -OK diff --git a/libjava/testsuite/libjava.lang/final_inner.java b/libjava/testsuite/libjava.lang/final_inner.java deleted file mode 100644 index 40905b1fa7e..00000000000 --- a/libjava/testsuite/libjava.lang/final_inner.java +++ /dev/null @@ -1,19 +0,0 @@ -// Class final_inner -// Generated on Tue Jan 18 13:35:19 PST 2000 -// - -class final_inner { - - void foo (final String s, final int i) { - class bar { - void printI () { System.out.println (s+i); } - } - new bar ().printI (); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `final_inner'..."); - new final_inner ().foo ("The Number ", 666); - } -} diff --git a/libjava/testsuite/libjava.lang/final_inner.out b/libjava/testsuite/libjava.lang/final_inner.out deleted file mode 100644 index 8ac46cfcc82..00000000000 --- a/libjava/testsuite/libjava.lang/final_inner.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `final_inner'... -The Number 666 diff --git a/libjava/testsuite/libjava.lang/final_int.java b/libjava/testsuite/libjava.lang/final_int.java deleted file mode 100644 index e225c7b2822..00000000000 --- a/libjava/testsuite/libjava.lang/final_int.java +++ /dev/null @@ -1,22 +0,0 @@ -// Class final_int -// Generated on Sat Feb 12 01:27:46 PST 2000 - -class final_int { - - final int x = 30; - - class foo { - int bar () { - return x; - } - } - void bar () { - int x = this.new foo ().bar (); - System.out.println (x); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `final_int'..."); - new final_int().bar (); - } -} diff --git a/libjava/testsuite/libjava.lang/final_int.out b/libjava/testsuite/libjava.lang/final_int.out deleted file mode 100644 index a7cbe2c9a41..00000000000 --- a/libjava/testsuite/libjava.lang/final_int.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `final_int'... -30 diff --git a/libjava/testsuite/libjava.lang/final_static_and_friend.java b/libjava/testsuite/libjava.lang/final_static_and_friend.java deleted file mode 100644 index b5ca6100db6..00000000000 --- a/libjava/testsuite/libjava.lang/final_static_and_friend.java +++ /dev/null @@ -1,17 +0,0 @@ -// Class final_static_and_friend -// Generated on Sat Feb 12 01:58:38 PST 2000 - -class final_static_and_friend { - final int a = 34; - static int b = 34; - int c = 34; - void foo () - { - System.out.println (a+b+c); - } - public static void main (String[] arg) - { - new final_static_and_friend ().foo (); - } - -} diff --git a/libjava/testsuite/libjava.lang/final_static_and_friend.out b/libjava/testsuite/libjava.lang/final_static_and_friend.out deleted file mode 100644 index 257e563266b..00000000000 --- a/libjava/testsuite/libjava.lang/final_static_and_friend.out +++ /dev/null @@ -1 +0,0 @@ -102 diff --git a/libjava/testsuite/libjava.lang/indirect.java b/libjava/testsuite/libjava.lang/indirect.java deleted file mode 100644 index 22bdebc5bb8..00000000000 --- a/libjava/testsuite/libjava.lang/indirect.java +++ /dev/null @@ -1,33 +0,0 @@ -// Class indirect -// Generated on Tue Nov 16 15:53:14 UTC 1999 -// Several indirection to enclosing class - -class indirect { - - private int foo; - - class indirect_inner { - class other { - class inner { - void test () { - int x = foo; - System.out.println ("x="+foo); - foo = 671; - } - } - } - - } - void foo () - { - foo = 670; - indirect_inner inn = this.new indirect_inner (); - this.new indirect_inner().new other().new inner ().test (); - System.out.println ("foo="+foo); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `indirect'..."); - new indirect().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/indirect.out b/libjava/testsuite/libjava.lang/indirect.out deleted file mode 100644 index 7eb96f765a3..00000000000 --- a/libjava/testsuite/libjava.lang/indirect.out +++ /dev/null @@ -1,3 +0,0 @@ -Testing class `indirect'... -x=670 -foo=671 diff --git a/libjava/testsuite/libjava.lang/indirect_read.java b/libjava/testsuite/libjava.lang/indirect_read.java deleted file mode 100644 index 48c53a8d015..00000000000 --- a/libjava/testsuite/libjava.lang/indirect_read.java +++ /dev/null @@ -1,33 +0,0 @@ -// Class indirect_read -// Generated on Mon Nov 15 17:20:40 UTC 1999 -// - -class indirect_read { - - int foo; - - class indirect_read_inner { - void test () { - } - - class other { - void testx () { - int x = foo; - System.out.println ("x="+x); - } - } - - } - void foo () - { - foo = 670; - indirect_read_inner inn = this.new indirect_read_inner (); - indirect_read_inner.other o = inn.new other (); - o.testx (); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `indirect_read'..."); - new indirect_read().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/indirect_read.out b/libjava/testsuite/libjava.lang/indirect_read.out deleted file mode 100644 index bf9d42ad7f8..00000000000 --- a/libjava/testsuite/libjava.lang/indirect_read.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `indirect_read'... -x=670 diff --git a/libjava/testsuite/libjava.lang/indirect_write.java b/libjava/testsuite/libjava.lang/indirect_write.java deleted file mode 100644 index 2f2bb74435d..00000000000 --- a/libjava/testsuite/libjava.lang/indirect_write.java +++ /dev/null @@ -1,32 +0,0 @@ -// Class indirect_write -// Generated on Tue Nov 16 15:01:24 UTC 1999 -// - -class indirect_write { - - int foo; - - class indirect_write_inner { - void test () { - } - - class other { - void testx () { - foo = 670; - } - } - - } - void foo () - { - indirect_write_inner inn = this.new indirect_write_inner (); - indirect_write_inner.other x = inn.new other (); - x.testx(); - System.out.println ("foo="+foo); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `indirect_write'..."); - new indirect_write().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/indirect_write.out b/libjava/testsuite/libjava.lang/indirect_write.out deleted file mode 100644 index 92b293337b3..00000000000 --- a/libjava/testsuite/libjava.lang/indirect_write.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `indirect_write'... -foo=670 diff --git a/libjava/testsuite/libjava.lang/inner1.java b/libjava/testsuite/libjava.lang/inner1.java deleted file mode 100644 index 820edf8026c..00000000000 --- a/libjava/testsuite/libjava.lang/inner1.java +++ /dev/null @@ -1,36 +0,0 @@ -// Class inner1 -// Generated on Thu Nov 4 16:35:03 PST 1999 -// - -class inner1 { - int i; - void foo () { - inner1.z x1 = new z(); - inner1.z.y x = x1.new y(); - x.bar (); - x.print(); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `inner1'..."); - new inner1 ().foo(); - } - class z { - int j; - void foo () { - inner1.this.i = 3; - } - class y { - int k; - void bar () { - inner1.this.i = 3; - z.this.j = 4; - y.this.k = 34; - } - void print () { - System.out.println ("i="+i+", j="+j+", k="+k); - } - } - } -} - diff --git a/libjava/testsuite/libjava.lang/inner1.out b/libjava/testsuite/libjava.lang/inner1.out deleted file mode 100644 index d1f9ac81551..00000000000 --- a/libjava/testsuite/libjava.lang/inner1.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `inner1'... -i=3, j=4, k=34 diff --git a/libjava/testsuite/libjava.lang/inner2.java b/libjava/testsuite/libjava.lang/inner2.java deleted file mode 100644 index 8ecb6f5f7ed..00000000000 --- a/libjava/testsuite/libjava.lang/inner2.java +++ /dev/null @@ -1,18 +0,0 @@ -// Class inner2 -// Generated on Mon Dec 6 14:32:34 PST 1999 -// - -class inner2 { - int foo = 1999; - void foo () - { - inner2.this.foo = 666; - System.out.println (inner2.this.foo); - } - void print () {System.out.println (foo);} - public static void main (String[] arg) - { - System.out.println ("Testing class `inner2'..."); - new inner2().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/inner2.out b/libjava/testsuite/libjava.lang/inner2.out deleted file mode 100644 index cd24c8659d7..00000000000 --- a/libjava/testsuite/libjava.lang/inner2.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `inner2'... -666 diff --git a/libjava/testsuite/libjava.lang/inner3.java b/libjava/testsuite/libjava.lang/inner3.java deleted file mode 100644 index e1cf9da376c..00000000000 --- a/libjava/testsuite/libjava.lang/inner3.java +++ /dev/null @@ -1,23 +0,0 @@ -// Class inner3 -// Generated on Tue Dec 7 11:37:43 PST 1999 -// - -class inner3 { - int bar; - public static void main (String[] arg) - { - System.out.println ("Testing class `inner3'..."); - new inner3().bar (); - } - void bar () { - t xx = this.new t (); - xx.bar (); - } - void foo () { bar = 3; } - class t { - void bar () { - inner3.this.foo (); - System.out.println (inner3.this.bar); - } - } -} diff --git a/libjava/testsuite/libjava.lang/inner3.out b/libjava/testsuite/libjava.lang/inner3.out deleted file mode 100644 index a7ce991dee1..00000000000 --- a/libjava/testsuite/libjava.lang/inner3.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `inner3'... -3 diff --git a/libjava/testsuite/libjava.lang/inner4.java b/libjava/testsuite/libjava.lang/inner4.java deleted file mode 100644 index 983e668dc16..00000000000 --- a/libjava/testsuite/libjava.lang/inner4.java +++ /dev/null @@ -1,34 +0,0 @@ -// Class inner4 -// Generated on Tue Dec 7 11:43:48 PST 1999 -// - -class inner4 { - static private int xyz () { return 3; } - private String f; - - String p () { - return "public String p()"; - } - - private String pp (int x, byte y, char c) { - return "private String pp("+x+", "+y+", "+c+")"; - } - - void foo () { - t xxx = this.new t(); - xxx.bar (); - pp (3, (byte)34, 'C'); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `inner4'..."); - new inner4().foo(); - } - class t { - void bar () { - System.out.println (p ()); - System.out.println (pp (3, (byte)34, 'C')); - System.out.println (xyz ()); - } - } -} diff --git a/libjava/testsuite/libjava.lang/inner4.out b/libjava/testsuite/libjava.lang/inner4.out deleted file mode 100644 index db879b58f00..00000000000 --- a/libjava/testsuite/libjava.lang/inner4.out +++ /dev/null @@ -1,4 +0,0 @@ -Testing class `inner4'... -public String p() -private String pp(3, 34, C) -3 diff --git a/libjava/testsuite/libjava.lang/inner_array.java b/libjava/testsuite/libjava.lang/inner_array.java deleted file mode 100644 index 69f31f026c5..00000000000 --- a/libjava/testsuite/libjava.lang/inner_array.java +++ /dev/null @@ -1,30 +0,0 @@ -// Class inner_array -// Generated on Fri Nov 19 13:19:47 PST 1999 -// - -class inner_array { - - private int[] foo; - - class array_inner { - void test () { - int x = foo[2]; - System.out.println ("x="+x); - foo [1] = 34; - foo [1]++; - } - } - void foo () - { - foo = new int [3]; - foo[2]=670; - array_inner inn = this.new array_inner (); - inn.test (); - System.out.println ("foo[1]="+foo[1]); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `inner_array'..."); - new inner_array().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/inner_array.out b/libjava/testsuite/libjava.lang/inner_array.out deleted file mode 100644 index 88b92874a56..00000000000 --- a/libjava/testsuite/libjava.lang/inner_array.out +++ /dev/null @@ -1,3 +0,0 @@ -Testing class `inner_array'... -x=670 -foo[1]=35 diff --git a/libjava/testsuite/libjava.lang/inner_interface.java b/libjava/testsuite/libjava.lang/inner_interface.java deleted file mode 100644 index b1e6789a99e..00000000000 --- a/libjava/testsuite/libjava.lang/inner_interface.java +++ /dev/null @@ -1,27 +0,0 @@ -// Class inner_interface -// Generated on Fri Feb 11 16:29:04 PST 2000 -// Simple inner interface example. - -class inner_interface { - interface bar { - static final int field = 14022000; - public void inner_interface (); - } - - class baz implements inner_interface.bar { - public void inner_interface () - { - System.out.println ("This is baz.inner_interface "+field); - } - } - - void x () { - this.new baz ().inner_interface (); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `inner_interface'..."); - new inner_interface ().x(); - } -} diff --git a/libjava/testsuite/libjava.lang/inner_interface.out b/libjava/testsuite/libjava.lang/inner_interface.out deleted file mode 100644 index 0c977d54a48..00000000000 --- a/libjava/testsuite/libjava.lang/inner_interface.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `inner_interface'... -This is baz.inner_interface 14022000 diff --git a/libjava/testsuite/libjava.lang/instance.java b/libjava/testsuite/libjava.lang/instance.java deleted file mode 100644 index a509cb3857c..00000000000 --- a/libjava/testsuite/libjava.lang/instance.java +++ /dev/null @@ -1,48 +0,0 @@ -// instance.java -- test the `instanceof' operator. - -import java.util.EventListener; - -public class instance implements EventListener -{ - public static void main (String[] args) - { - Object x1 = new instance (); - EventListener x2 = new instance (); - IllegalArgumentException iae - = new IllegalArgumentException ("any random class"); - String x3 = "zardoz"; - Object x4 = "zardoz"; - - // Test simple object stuff - System.out.println (x1 instanceof Object); - System.out.println (x1 instanceof IllegalArgumentException); - System.out.println (x1 instanceof EventListener); - System.out.println (x1 instanceof String); - System.out.println ("="); - - // Test with value which is an interface. - System.out.println (x2 instanceof Object); - System.out.println (x2 instanceof IllegalArgumentException); - System.out.println (x2 instanceof EventListener); - System.out.println ("="); - - // Test with value which is a final class. - System.out.println (x3 instanceof Object); - System.out.println (x3 instanceof String); - System.out.println ("="); - - // Test with value which is a random class. - System.out.println (iae instanceof Object); - System.out.println (iae instanceof IllegalArgumentException); - System.out.println (iae instanceof EventListener); - System.out.println ("="); - - // Test with value which is a final class, but not known - // statically. - System.out.println (x4 instanceof Object); - System.out.println (x4 instanceof IllegalArgumentException); - System.out.println (x4 instanceof EventListener); - System.out.println (x4 instanceof String); - System.out.println (x4 instanceof int[]); - } -} diff --git a/libjava/testsuite/libjava.lang/instance.out b/libjava/testsuite/libjava.lang/instance.out deleted file mode 100644 index 03988156063..00000000000 --- a/libjava/testsuite/libjava.lang/instance.out +++ /dev/null @@ -1,21 +0,0 @@ -true -false -true -false -= -true -false -true -= -true -true -= -true -true -false -= -true -false -false -true -false diff --git a/libjava/testsuite/libjava.lang/instinit.java b/libjava/testsuite/libjava.lang/instinit.java deleted file mode 100644 index 9a02b6699bc..00000000000 --- a/libjava/testsuite/libjava.lang/instinit.java +++ /dev/null @@ -1,22 +0,0 @@ -// Class instinit -// Generated on Wed Feb 2 12:31:16 PST 2000 -// Simple instance initializer test case. - -class instinit extends foo { - - String buffer = "No Oink! Oink!"; - - /* Instance initializer */ - { - System.out.println ("Oinking..."); - } - { - buffer = "Oink! Oink!"; - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `instinit'..."); - System.out.println (new instinit ().buffer); - } -} diff --git a/libjava/testsuite/libjava.lang/instinit.out b/libjava/testsuite/libjava.lang/instinit.out deleted file mode 100644 index 503af0fd626..00000000000 --- a/libjava/testsuite/libjava.lang/instinit.out +++ /dev/null @@ -1,4 +0,0 @@ -Testing class `instinit'... -Plain old boring foo -Oinking... -Oink! Oink! diff --git a/libjava/testsuite/libjava.lang/instinit2.java b/libjava/testsuite/libjava.lang/instinit2.java deleted file mode 100644 index 4acb157fa64..00000000000 --- a/libjava/testsuite/libjava.lang/instinit2.java +++ /dev/null @@ -1,31 +0,0 @@ -// Class ii2 -// Generated on Wed Feb 2 17:52:49 PST 2000 -// The instance initializer throws a checked exception. This is OK -// since the constructors declares it in its `throws' clause -- at -// least that's what the specs are saying. - -class ii2 { - - String buffer = "Oink Oink!"; - - { - System.out.println ("Checking the oink..."); - if (buffer != null) - throw new Exception ("It just oinked"); - } - - ii2 () throws Exception - { - System.out.println ("Ctor"); - } - - public static void main (String[] arg) - { - System.out.println ("Testing class `ii2'..."); - try { - System.out.println (new ii2 ().buffer); - } catch (Exception e) { - System.out.println (e.toString()); - } - } -} diff --git a/libjava/testsuite/libjava.lang/instinit2.out b/libjava/testsuite/libjava.lang/instinit2.out deleted file mode 100644 index 01efac10d7e..00000000000 --- a/libjava/testsuite/libjava.lang/instinit2.out +++ /dev/null @@ -1,4 +0,0 @@ -Testing class `instinit2'... -Ctor -Checking the oink... -java.lang.Exception: It just oinked diff --git a/libjava/testsuite/libjava.lang/klass.java b/libjava/testsuite/libjava.lang/klass.java deleted file mode 100644 index 1578e6f4240..00000000000 --- a/libjava/testsuite/libjava.lang/klass.java +++ /dev/null @@ -1,10 +0,0 @@ -public class klass -{ - public static void main (String[] args) - { - Class ic1 = Integer.TYPE; - int[] foo = new int[3]; - Class ic2 = foo.getClass().getComponentType(); - System.out.println(ic1.equals(ic2)); - } -} diff --git a/libjava/testsuite/libjava.lang/klass.out b/libjava/testsuite/libjava.lang/klass.out deleted file mode 100644 index 27ba77ddaf6..00000000000 --- a/libjava/testsuite/libjava.lang/klass.out +++ /dev/null @@ -1 +0,0 @@ -true diff --git a/libjava/testsuite/libjava.lang/lang.exp b/libjava/testsuite/libjava.lang/lang.exp deleted file mode 100644 index c0b8570403f..00000000000 --- a/libjava/testsuite/libjava.lang/lang.exp +++ /dev/null @@ -1,35 +0,0 @@ -global srcdir subdir - -catch "glob -nocomplain ${srcdir}/${subdir}/*.out" srcfiles -verbose "srcfiles are $srcfiles" - -set prefix "" -foreach x $srcfiles { - regsub "\\.out$" $x "" prefix - set bname [file tail $prefix] - - if [file exists $srcdir/$subdir/${bname}.xpo] { - set resfile "$srcdir/$subdir/${bname}.xpo" - set options "regexp_match" - } else { - set resfile "${prefix}.out" - set options "" - } - - if [file exists ${prefix}.inp] { - set inpfile ${prefix}.inp - } else { - set inpfile "" - } - - set args [libjava_read_xfail $srcdir/$subdir/$bname.xfail] - - verbose "inpfile is $inpfile" - - test_libjava $options "${prefix}.java" "" $inpfile $resfile $args - test_libjava $options "${prefix}.java" "-O" $inpfile $resfile $args -} - -# Local Variables: -# tcl-indent-level:4 -# End: diff --git a/libjava/testsuite/libjava.lang/multiple_finit.java b/libjava/testsuite/libjava.lang/multiple_finit.java deleted file mode 100644 index a05ecb38132..00000000000 --- a/libjava/testsuite/libjava.lang/multiple_finit.java +++ /dev/null @@ -1,28 +0,0 @@ -// Class multiple_finit -// Generated on Mon Jan 3 20:07:18 PST 2000 -// - -class multiple_finit { - - int foo = 99; - - class multiple_finit_inner { - int inner = 34; - void test () { - System.out.println (inner); - System.out.println (foo); - } - } - void foo (String s) - { - multiple_finit_inner inn = this.new multiple_finit_inner (); - inn.test (); - System.out.println (foo); - } - void testx () { } - public static void main (String[] arg) - { - System.out.println ("Testing class `multiple_finit'..."); - new multiple_finit().foo (""); - } -} diff --git a/libjava/testsuite/libjava.lang/multiple_finit.out b/libjava/testsuite/libjava.lang/multiple_finit.out deleted file mode 100644 index 65ee05ff140..00000000000 --- a/libjava/testsuite/libjava.lang/multiple_finit.out +++ /dev/null @@ -1,4 +0,0 @@ -Testing class `multiple_finit'... -34 -99 -99 diff --git a/libjava/testsuite/libjava.lang/nested_with_ctor.java b/libjava/testsuite/libjava.lang/nested_with_ctor.java deleted file mode 100644 index 4560dc3993f..00000000000 --- a/libjava/testsuite/libjava.lang/nested_with_ctor.java +++ /dev/null @@ -1,27 +0,0 @@ -// Class nested_with_ctor -// Generated on Mon Jan 31 18:31:47 PST 2000 -// The nested class contains explicit constructors. Their argument -// lists should be augmented with the alias initializer values when -// the ctors are seen declared (as opposed to generated.) - -class nested_with_ctor { - - void fct(final String s, final int i) - { - class nested { - String buffer = s+i; - String getString () { return buffer; } - nested (int i) { buffer = "(int)"+i; } - nested () {} - } - nested x = new nested (); - System.out.println (x.getString ()); - nested y = new nested (123); - System.out.println (y.getString ()); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `nested_with_ctor'..."); - new nested_with_ctor ().fct ("Yikes!", 321); - } -} diff --git a/libjava/testsuite/libjava.lang/nested_with_ctor.out b/libjava/testsuite/libjava.lang/nested_with_ctor.out deleted file mode 100644 index d130f1f8893..00000000000 --- a/libjava/testsuite/libjava.lang/nested_with_ctor.out +++ /dev/null @@ -1,3 +0,0 @@ -Testing class `nested_with_ctor'... -Yikes!321 -(int)123 diff --git a/libjava/testsuite/libjava.lang/pr100.java b/libjava/testsuite/libjava.lang/pr100.java deleted file mode 100644 index a9f3685cf4a..00000000000 --- a/libjava/testsuite/libjava.lang/pr100.java +++ /dev/null @@ -1,13 +0,0 @@ -// PR 100 - -// Second call to hashcode causes SEGV when dynamically linking. - -public class pr100 -{ - public static void main(String[] args) { - pr100 ht = new pr100(); - - System.err.println(ht.hashCode()); - System.err.println(ht.getClass().hashCode()); - } -} diff --git a/libjava/testsuite/libjava.lang/pr100.xpo b/libjava/testsuite/libjava.lang/pr100.xpo deleted file mode 100644 index d87ea2e8889..00000000000 --- a/libjava/testsuite/libjava.lang/pr100.xpo +++ /dev/null @@ -1,2 +0,0 @@ -[0-9]+ -[0-9]+ diff --git a/libjava/testsuite/libjava.lang/pr109.java b/libjava/testsuite/libjava.lang/pr109.java deleted file mode 100644 index 17c4b2301bb..00000000000 --- a/libjava/testsuite/libjava.lang/pr109.java +++ /dev/null @@ -1,29 +0,0 @@ -// PR 109 - -// Running the test code produces the output "0" instead of the -// expected "01234". - -// The break statement exits both for-loops (not just the innermost -// one) if the (single statement) body of the outer for-loop is not -// enclosed in braces. Affects more deeply nested loops in the same -// way. - -public class pr109 -{ - public static void main (String argv[]) - { - int i, j; - - for (i = 0; i < 5; i++) - for (j = 0; j < 2; j++) - { - if (j == 1) - break; - System.out.print (i); - } - - // We print a newline here because otherwise the DejaGNU log - // file is screwed up. - System.out.println (); - } -} diff --git a/libjava/testsuite/libjava.lang/pr109.out b/libjava/testsuite/libjava.lang/pr109.out deleted file mode 100644 index 3521a84d083..00000000000 --- a/libjava/testsuite/libjava.lang/pr109.out +++ /dev/null @@ -1 +0,0 @@ -01234 diff --git a/libjava/testsuite/libjava.lang/pr133.java b/libjava/testsuite/libjava.lang/pr133.java deleted file mode 100644 index 42009f4c851..00000000000 --- a/libjava/testsuite/libjava.lang/pr133.java +++ /dev/null @@ -1,34 +0,0 @@ -// PR 133 - -// System.exit(0) appears to hang the program. - -public class pr133 { - public static void main(String argv[]) - { - String name; - - if (argv.length == 0) { - name = "Rocket J. Squirrel"; - } else { - name = argv[0]; - } - - new pr133(name).identifySelf(); - System.out.println("goodbye"); - - System.exit(0); - } - - public pr133 (String name) - { - v_name = name; - } - - public void identifySelf() - { - System.out.println("This is a pr133 instance named " + v_name); - System.out.println("Leaving identifySelf()..."); - } - - private String v_name; -} diff --git a/libjava/testsuite/libjava.lang/pr133.out b/libjava/testsuite/libjava.lang/pr133.out deleted file mode 100644 index 52098d8075a..00000000000 --- a/libjava/testsuite/libjava.lang/pr133.out +++ /dev/null @@ -1,3 +0,0 @@ -This is a pr133 instance named Rocket J. Squirrel -Leaving identifySelf()... -goodbye diff --git a/libjava/testsuite/libjava.lang/pr179.java b/libjava/testsuite/libjava.lang/pr179.java deleted file mode 100644 index ec99efc1a79..00000000000 --- a/libjava/testsuite/libjava.lang/pr179.java +++ /dev/null @@ -1,61 +0,0 @@ -// Extended regression test for the PR 179. -// -// This tests the ".class" language syntax, initialization behaviour for -// Class.isInstance() and Class.isAssignableFrom(), and isAssignableFrom() -// functionality in the event that an interface argument that is not -// implemented by any loaded class is given. -// -// Bryce McKinlay <bryce@albatross.co.nz> - -class A -{ - static - { - System.out.println("A initialized"); - } -} - -interface IA {} - -class B implements IA -{ - static - { - System.out.println("B initialized"); - } -} - -class C -{ - static - { - System.out.println("C initialized"); - } -} - -interface IB {} - -public class pr179 -{ - public static void main(String[] args) - { - System.out.println (A.class.isAssignableFrom (Object.class)); - System.out.println (IB.class.isAssignableFrom (B.class)); - System.out.println (IA.class.isAssignableFrom (B.class)); - A a = new A(); - System.out.println (C.class.isInstance (a)); - C c = new C(); - System.out.println (C.class.isInstance (c)); - } -} - -/* Expected Output: -A initialized -false -B initialized -false -true -C initialized -false -true -*/ diff --git a/libjava/testsuite/libjava.lang/pr179.out b/libjava/testsuite/libjava.lang/pr179.out deleted file mode 100644 index 3a63ad6a52e..00000000000 --- a/libjava/testsuite/libjava.lang/pr179.out +++ /dev/null @@ -1,8 +0,0 @@ -A initialized -false -B initialized -false -true -C initialized -false -true diff --git a/libjava/testsuite/libjava.lang/pr184.java b/libjava/testsuite/libjava.lang/pr184.java deleted file mode 100644 index 42175b38e9d..00000000000 --- a/libjava/testsuite/libjava.lang/pr184.java +++ /dev/null @@ -1,22 +0,0 @@ -public class pr184 -{ - public static void main(String[] args) - { - pr184 n = null; - try - { - n.foo(); - } - catch (NullPointerException x) - { - System.out.println(x); - } - } - - int x = 2; - - final int foo() - { - return x; - }; -} diff --git a/libjava/testsuite/libjava.lang/pr184.out b/libjava/testsuite/libjava.lang/pr184.out deleted file mode 100644 index 7a72d865c98..00000000000 --- a/libjava/testsuite/libjava.lang/pr184.out +++ /dev/null @@ -1 +0,0 @@ -java.lang.NullPointerException diff --git a/libjava/testsuite/libjava.lang/pr83.java b/libjava/testsuite/libjava.lang/pr83.java deleted file mode 100644 index b209aff28b4..00000000000 --- a/libjava/testsuite/libjava.lang/pr83.java +++ /dev/null @@ -1,39 +0,0 @@ -// PR 83 - -/* - * test that caught null pointers exceptions in finalizers work correctly - * and that local variables are accessible in null pointer exception handlers. - */ -import java.io.*; - -public class pr83 { - - static String s; - - public static void main(String[] args) { - System.out.println(tryfinally() + s); - } - - public static String tryfinally() { - String yuck = null; - String local_s = null; - - try { - return "This is "; - } finally { - try { - local_s = "Perfect"; - /* trigger null pointer exception */ - String x = yuck.toLowerCase(); - } catch (Exception _) { - /* - * when the null pointer exception is caught, we must still - * be able to access local_s. - * Our return address for the finally clause must also still - * be intact. - */ - s = local_s; - } - } - } -} diff --git a/libjava/testsuite/libjava.lang/pr83.out b/libjava/testsuite/libjava.lang/pr83.out deleted file mode 100644 index 6a87582a8dc..00000000000 --- a/libjava/testsuite/libjava.lang/pr83.out +++ /dev/null @@ -1 +0,0 @@ -This is Perfect diff --git a/libjava/testsuite/libjava.lang/private_direct_read.java b/libjava/testsuite/libjava.lang/private_direct_read.java deleted file mode 100644 index 46d8fc3004b..00000000000 --- a/libjava/testsuite/libjava.lang/private_direct_read.java +++ /dev/null @@ -1,26 +0,0 @@ -// Class private_direct_read -// Generated on Tue Nov 16 15:04:13 UTC 1999 -// - -class private_direct_read { - - private int foo; - - class private_direct_read_inner { - void test () { - int x = foo; - System.out.println ("x="+x); - } - } - void foo () - { - foo = 670; - private_direct_read_inner inn = this.new private_direct_read_inner (); - inn.test (); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `private_direct_read'..."); - new private_direct_read().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/private_direct_read.out b/libjava/testsuite/libjava.lang/private_direct_read.out deleted file mode 100644 index 11d665d6120..00000000000 --- a/libjava/testsuite/libjava.lang/private_direct_read.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `private_direct_read'... -x=670 diff --git a/libjava/testsuite/libjava.lang/private_direct_write.java b/libjava/testsuite/libjava.lang/private_direct_write.java deleted file mode 100644 index 3c7a887f461..00000000000 --- a/libjava/testsuite/libjava.lang/private_direct_write.java +++ /dev/null @@ -1,25 +0,0 @@ -// Class private_direct_write -// Generated on Tue Nov 16 15:05:54 UTC 1999 -// - -class private_direct_write { - - private int foo; - - class private_direct_write_inner { - void test () { - foo = 670; - } - } - void foo () - { - private_direct_write_inner inn = this.new private_direct_write_inner (); - inn.test (); - System.out.println ("foo="+foo); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `private_direct_write'..."); - new private_direct_write().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/private_indirect_read.java b/libjava/testsuite/libjava.lang/private_indirect_read.java deleted file mode 100644 index 9a37bfdac11..00000000000 --- a/libjava/testsuite/libjava.lang/private_indirect_read.java +++ /dev/null @@ -1,32 +0,0 @@ -// Class private_indirect_read -// Generated on Tue Nov 16 15:34:56 UTC 1999 -// - -class private_indirect_read { - - private int foo; - - class private_indirect_read_inner { - void test () { - } - class other { - void testx () { - int x = foo; - System.out.println ("x="+x); - } - } - - } - void foo () - { - foo=670; - private_indirect_read_inner inn = this.new private_indirect_read_inner (); - private_indirect_read_inner.other o = inn.new other (); - o.testx(); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `private_indirect_read'..."); - new private_indirect_read().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/private_indirect_write.java b/libjava/testsuite/libjava.lang/private_indirect_write.java deleted file mode 100644 index f706b20c9a5..00000000000 --- a/libjava/testsuite/libjava.lang/private_indirect_write.java +++ /dev/null @@ -1,32 +0,0 @@ -// Class private_indirect_write -// Generated on Tue Nov 16 15:44:49 UTC 1999 -// - -class private_indirect_write { - - private int foo; - - class private_indirect_write_inner { - void test () { - } - - class other { - void test () { - foo = 670; - } - } - - } - void foo () - { - private_indirect_write_inner inn = this.new private_indirect_write_inner (); - private_indirect_write_inner.other x = inn.new other (); - x.test (); - System.out.println ("foo="+foo); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `private_indirect_write'..."); - new private_indirect_write().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/search_outer.java b/libjava/testsuite/libjava.lang/search_outer.java deleted file mode 100644 index 66567df8b6d..00000000000 --- a/libjava/testsuite/libjava.lang/search_outer.java +++ /dev/null @@ -1,28 +0,0 @@ -// Class search_outer.java -// Generated on Thu Nov 18 18:40:43 UTC 1999 -// - -class search_outer { - - private int foo; - - class search_outer_inner { - void test () { - foo++; - System.out.println ("foo="+foo); - foo += 3; - System.out.println ("foo="+foo); - } - } - void foo () - { - foo = 3; - search_outer_inner inn = this.new search_outer_inner (); - inn.test (); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `search_outer'..."); - new search_outer().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/search_outer.out b/libjava/testsuite/libjava.lang/search_outer.out deleted file mode 100644 index df2862d680b..00000000000 --- a/libjava/testsuite/libjava.lang/search_outer.out +++ /dev/null @@ -1,3 +0,0 @@ -Testing class `search_outer'... -foo=4 -foo=7 diff --git a/libjava/testsuite/libjava.lang/stringconst.java b/libjava/testsuite/libjava.lang/stringconst.java deleted file mode 100644 index 62857494317..00000000000 --- a/libjava/testsuite/libjava.lang/stringconst.java +++ /dev/null @@ -1,22 +0,0 @@ -// A reference to a String shouldn't cause an interface to be -// initialized. - -interface I -{ - String z = "zardoz"; - int q = stringconst.out ("q", 0); -} - -public class stringconst -{ - public static int out (String s, int i) - { - System.out.println (s + "=" + i); - return i; - } - - public static void main (String[] args) - { - System.out.println (I.z); - } -} diff --git a/libjava/testsuite/libjava.lang/stringconst.out b/libjava/testsuite/libjava.lang/stringconst.out deleted file mode 100644 index 1f0ac89bf77..00000000000 --- a/libjava/testsuite/libjava.lang/stringconst.out +++ /dev/null @@ -1 +0,0 @@ -zardoz diff --git a/libjava/testsuite/libjava.lang/stringconst2.java b/libjava/testsuite/libjava.lang/stringconst2.java deleted file mode 100644 index f33ee9c5b3e..00000000000 --- a/libjava/testsuite/libjava.lang/stringconst2.java +++ /dev/null @@ -1,21 +0,0 @@ -// Test to make sure a string constant is correctly initialized. - -import java.lang.reflect.*; - -public class stringconst2 -{ - public static final String q = "zardoz"; - - public static void main (String[] args) - { - try - { - Class k = Class.forName ("stringconst2"); - Field f = k.getField ("q"); - System.out.println (f.get (null)); - } - catch (Throwable _) - { - } - } -} diff --git a/libjava/testsuite/libjava.lang/stringconst2.out b/libjava/testsuite/libjava.lang/stringconst2.out deleted file mode 100644 index 1f0ac89bf77..00000000000 --- a/libjava/testsuite/libjava.lang/stringconst2.out +++ /dev/null @@ -1 +0,0 @@ -zardoz diff --git a/libjava/testsuite/libjava.lang/stub.java b/libjava/testsuite/libjava.lang/stub.java deleted file mode 100644 index dfda004b3b1..00000000000 --- a/libjava/testsuite/libjava.lang/stub.java +++ /dev/null @@ -1,101 +0,0 @@ -// Class stub -// Generated on Fri Feb 4 20:23:47 PST 2000 -// A somewhat thorough test of function invocator generated stubs. - -class stub { - - String ok; - - void OK () {System.out.println (ok);} - void OK (int i) {System.out.println (ok+" "+i);} - static void testOK () {System.out.println ("OK");} - static void testOK (int i) {System.out.println ("OK "+i); } - - // STATIC PRIVATE R_VALUE ARGS - // No No No No - void t1 () {OK();} - // Yes No No No - static void t2 () {testOK();} - // No Yes No No - private void t3 () {OK();} - // Yes Yes No No - static private void t4 () {testOK();} - // No No Yes No - int t5 () {return 5;} - // Yes No Yes No - static int t6 () {return 6;} - // No Yes Yes No - private int t7 () {return 7;} - // Yes Yes Yes No - static private int t8 () {return 8;} - - // No No No Yes - void t9 (int i) {OK(i);} - // Yes No No Yes - static void t10 (int i) {testOK(i);} - // No Yes No Yes - private void t11 (int i) {OK(i);} - // Yes Yes No Yes - static private void t12 (int i) {testOK(i);} - // No No Yes Yes - int t13 (int i) {return i*2;} - // Yes No Yes Yes - static int t14 (int i) {return i*3;} - // No Yes Yes Yes - private int t15 (int i) {return i*4;} - // Yes Yes Yes Yes - static private int t16 (int i) {return i*5;} - - void foo () - { - this.new bar ().test (); - } - class bar { - void test () { - ok = "OK"; - t1 (); - t2 (); - t3 (); - t4 (); - System.out.println (t5()); - System.out.println (t6()); - System.out.println (t7()); - System.out.println (t8()); - t9 (9); - t10 (10); - t11 (11); - t12 (12); - System.out.println (t13(13)); - System.out.println (t14(14)); - System.out.println (t15(15)); - System.out.println (t16(16)); - this.new baz ().test (); - } - class baz { - void test () { - ok = "OKOK"; - t1 (); - t2 (); - t3 (); - t4 (); - System.out.println (t5()); - System.out.println (t6()); - System.out.println (t7()); - System.out.println (t8()); - t9 (9); - t10 (10); - t11 (11); - t12 (12); - System.out.println (t13(13)); - System.out.println (t14(14)); - System.out.println (t15(15)); - System.out.println (t16(16)); - } - } - } - public static void main (String[] arg) - { - System.out.println ("Testing class `stub'..."); - new stub ().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/stub.out b/libjava/testsuite/libjava.lang/stub.out deleted file mode 100644 index 90937c6da95..00000000000 --- a/libjava/testsuite/libjava.lang/stub.out +++ /dev/null @@ -1,33 +0,0 @@ -Testing class `stub'... -OK -OK -OK -OK -5 -6 -7 -8 -OK 9 -OK 10 -OK 11 -OK 12 -26 -42 -60 -80 -OKOK -OK -OKOK -OK -5 -6 -7 -8 -OKOK 9 -OK 10 -OKOK 11 -OK 12 -26 -42 -60 -80 diff --git a/libjava/testsuite/libjava.lang/test_long.java b/libjava/testsuite/libjava.lang/test_long.java deleted file mode 100644 index 3e876ac34e3..00000000000 --- a/libjava/testsuite/libjava.lang/test_long.java +++ /dev/null @@ -1,13 +0,0 @@ -class test_long { - - public static void main (String[] arg) - { - long a, b, c, d, e; - e = 234L; - d = 0x8888888888888888L; - a = 0x0123456789ABCDEFL; - b = 0xFEDCBA9876543210L; - c = 0xF096A5B4C3B2E187L; - System.out.println (a+" "+b+" "+c+" "+d+" "+e); - } -} diff --git a/libjava/testsuite/libjava.lang/test_long.out b/libjava/testsuite/libjava.lang/test_long.out deleted file mode 100644 index 1f10f0cf806..00000000000 --- a/libjava/testsuite/libjava.lang/test_long.out +++ /dev/null @@ -1 +0,0 @@ -81985529216486895 -81985529216486896 -1110518062304271993 -8608480567731124088 234 diff --git a/libjava/testsuite/libjava.lang/tmi.java b/libjava/testsuite/libjava.lang/tmi.java deleted file mode 100644 index be2395a965b..00000000000 --- a/libjava/testsuite/libjava.lang/tmi.java +++ /dev/null @@ -1,43 +0,0 @@ -// Class t -// Generated on Thu Nov 4 16:35:03 PST 1999 -// - -class tmi { - int i; - void foo () { - tmi.z x1 = new z(); - tmi.z.y x = x1.new y(); - x.bar (); - x.print(); - tmi.this.i = 666; - x.print(); - tmi.this.print(); - } - void print () { - System.out.println ("tmi.print()"); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `tmi'..."); - new tmi ().foo(); - } - class z { - int j; - void foo () { - tmi.this.i = 3; - } - class y { - int k; - void bar () { - tmi.this.i = 3; - tmi.this.print (); - z.this.j = 4; - y.this.k = 34; - } - void print () { - System.out.println ("i="+i+", j="+j+", k="+k); - } - } - } -} - diff --git a/libjava/testsuite/libjava.lang/tmi.out b/libjava/testsuite/libjava.lang/tmi.out deleted file mode 100644 index 7c87756fd00..00000000000 --- a/libjava/testsuite/libjava.lang/tmi.out +++ /dev/null @@ -1,5 +0,0 @@ -Testing class `tmi'... -tmi.print() -i=3, j=4, k=34 -i=666, j=4, k=34 -tmi.print() diff --git a/libjava/testsuite/libjava.lang/tp.java b/libjava/testsuite/libjava.lang/tp.java deleted file mode 100644 index b6d9fbec48f..00000000000 --- a/libjava/testsuite/libjava.lang/tp.java +++ /dev/null @@ -1,36 +0,0 @@ -// Class tp -// Generated on Thu Nov 4 16:35:03 PST 1999 -// - -class tp { - private int i; - void foo () { - tp.z x1 = new z(); - tp.z.y x = x1.new y(); - x.bar (); - x.print(); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `tp'..."); - new tp ().foo(); - } - class z { - private int j; - void foo () { - tp.this.i = 3; - } - class y { - private int k; - void bar () { - tp.this.i = 3; - z.this.j = 4; - y.this.k = 34; - } - void print () { - System.out.println ("i="+i+", j="+j+", k="+k); - } - } - } -} - diff --git a/libjava/testsuite/libjava.lang/tp.out b/libjava/testsuite/libjava.lang/tp.out deleted file mode 100644 index f89aac653d9..00000000000 --- a/libjava/testsuite/libjava.lang/tp.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `tp'... -i=3, j=4, k=34 diff --git a/libjava/testsuite/libjava.lang/update_outer.java b/libjava/testsuite/libjava.lang/update_outer.java deleted file mode 100644 index b2e84370395..00000000000 --- a/libjava/testsuite/libjava.lang/update_outer.java +++ /dev/null @@ -1,28 +0,0 @@ -// Class update_outer -// Generated on Thu Nov 18 21:37:21 UTC 1999 -// - -class update_outer { - - private String foo; - - class update_outer_inner { - void test () { - foo += " M$"; - System.out.println ("foo=`"+foo+"'"); - } - - - } - void foo () - { - foo = "780"; - update_outer_inner inn = this.new update_outer_inner (); - inn.test (); - } - public static void main (String[] arg) - { - System.out.println ("Testing class `update_outer'..."); - new update_outer().foo (); - } -} diff --git a/libjava/testsuite/libjava.lang/update_outer.out b/libjava/testsuite/libjava.lang/update_outer.out deleted file mode 100644 index cff7c5d5b3d..00000000000 --- a/libjava/testsuite/libjava.lang/update_outer.out +++ /dev/null @@ -1,2 +0,0 @@ -Testing class `update_outer'... -foo=`780 M$' |