Преглед изворни кода

Extra tests

svn path=/trunk/mcs/; revision=1533
Miguel de Icaza пре 24 година
родитељ
комит
5d7a32dd97
3 измењених фајлова са 16 додато и 2 уклоњено
  1. 3 2
      mcs/tests/makefile
  2. 13 0
      mcs/tests/test-10.cs
  3. BIN
      mcs/tests/test-53.cs

+ 3 - 2
mcs/tests/makefile

@@ -10,9 +10,10 @@ TEST_SOURCES = \
 	test-21 test-22 test-23 test-24 test-25 test-26 test-27 test-28 		\
 	test-31 test-32 test-33 test-34 test-35 test-36	test-37 	test-39 test-40 \
 		test-42 test-43 test-44 test-45 test-46 test-47 test-48 test-49 test-50 
-	
+			test-53
+
 TEST_NOPASS = \
-	test-29 test-30 test-38
+	test-29 test-30 test-38 test-52
 
 test-compiler:
 	-rm *.exe

+ 13 - 0
mcs/tests/test-10.cs

@@ -15,6 +15,7 @@ class X {
 		sbyte s = 0;
 
 		asbyte ((byte) s, (ushort) s, (uint) s, (ulong) s, (char) s);
+		asbyte (checked ((byte) s), checked ((ushort) s), checked ((uint) s), checked ((ulong) s), checked ((char) s));
 	}
 
 	void abyte (sbyte a, char b)
@@ -26,6 +27,7 @@ class X {
 		byte b = 0;
 
 		abyte ((sbyte) b, (char) b);
+		abyte (checked ((sbyte) b), checked ((char) b));
 	}
 
 	void ashort (sbyte a, byte b, ushort c, uint d, ulong e, char f)
@@ -37,6 +39,7 @@ class X {
 		short a = 1;
 
 		ashort ((sbyte) a, (byte) a, (ushort) a, (uint) a, (ulong) a, (char) a);
+		ashort (checked ((sbyte) a), checked ((byte) a), checked ((ushort) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
 	}
 
 	void aushort (sbyte a, byte b, short c, char d)
@@ -47,6 +50,7 @@ class X {
 	{
 		ushort a = 1;
 		aushort ((sbyte) a, (byte) a, (short) a, (char) a);
+		aushort (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((char) a));
 	}
 
 	void aint (sbyte a, byte b, short c, ushort d, uint e, ulong f, char g)
@@ -58,6 +62,7 @@ class X {
 		int a = 1;
 
 		aint ((sbyte) a, (byte) a, (short) a, (ushort) a, (uint) a, (ulong) a, (char) a);
+		aint (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
 	}
 
 	void auint (sbyte a, byte b, short c, ushort d, int e, char f)
@@ -69,6 +74,7 @@ class X {
 		uint a = 1;
 
 		auint ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (char) a);
+		auint (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((char) a));
 	}
 
 	void along (sbyte a, byte b, short c, ushort d, int e, uint f, ulong g, char h)
@@ -80,6 +86,7 @@ class X {
 		long a = 1;
 
 		along ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (ulong) a, (char) a);
+		along (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((ulong) a), checked ((char) a));
 	}
 
 	void aulong (sbyte a, byte b, short c, ushort d, int e, uint f, long g, char h)
@@ -91,6 +98,7 @@ class X {
 		ulong a = 1;
 
 		aulong ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a, (char) a);
+		aulong (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a), checked ((char) a));
 	}
 
 	void achar (sbyte a, byte b, short c)
@@ -103,6 +111,7 @@ class X {
 		char a = (char) 1;
 
 		achar ((sbyte) a, (byte) a, (short) a);
+		achar (checked ((sbyte) a), checked ((byte) a), checked ((short) a));
 	}
 
 	void afloat (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h, decimal dd)
@@ -115,6 +124,8 @@ class X {
 
 		afloat ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
 			(ulong) a, (char) a, (decimal) a);
+		afloat (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
+checked (			(ulong) a), checked ((char) a), checked ((decimal) a));
 	}
 
 	void adouble (sbyte a, byte b, short c, ushort d, int e, uint f, long ll, ulong g, char h,
@@ -128,6 +139,8 @@ class X {
 
 		adouble ((sbyte) a, (byte) a, (short) a, (ushort) a, (int) a, (uint) a, (long) a,
 			(ulong) a, (char) a, (float) a, (decimal) a);
+		adouble (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
+checked (			(ulong) a), checked ((char) a), checked ((float) a), (decimal) a);
 	}
 
 	static void Main ()

BIN
mcs/tests/test-53.cs