From 5d7a32dd97ea1f730a50a522da0ae6c026126d2d Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 7 Dec 2001 04:56:12 +0000 Subject: [PATCH] Extra tests svn path=/trunk/mcs/; revision=1533 --- mcs/tests/makefile | 5 +++-- mcs/tests/test-10.cs | 13 +++++++++++++ mcs/tests/test-53.cs | Bin 0 -> 2048 bytes 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 mcs/tests/test-53.cs diff --git a/mcs/tests/makefile b/mcs/tests/makefile index 549b0d5818c..4b968008321 100755 --- a/mcs/tests/makefile +++ b/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 diff --git a/mcs/tests/test-10.cs b/mcs/tests/test-10.cs index 5f09d44dc84..20e1cc6ee81 100644 --- a/mcs/tests/test-10.cs +++ b/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 () diff --git a/mcs/tests/test-53.cs b/mcs/tests/test-53.cs new file mode 100755 index 0000000000000000000000000000000000000000..1593f68e925ebbfef90d7706b7b1492f7a9dbdde GIT binary patch literal 2048 zcmeHH&u<%55dPM2owZ{}PNmZH#EVQzcVBPz}?_Rh>VGjHC^ zytmu@;2tIb_5BP$4TSI+M(E!SOI$mN_fISvs6Q3EwPND}1@iQrs zKGVRkZX!bpSaTxnhn-;!4Voo}qZy|Lur!YUjs64s7n0f}^_e+fm5N23GktC+8ec*a z3pq?OhU;f?^W>#E#3r*awu7HhcBfV9HSuPT57$$WSOa@XZ6XVv)~*(vB*@UJl4p|EU)%C;8T7>Tx%tf z7p%urG0P;psi?hm@$53?Jn_8XB|mg2g}AJGnY$GQ{9zrFLD6R3Up8iRc@Huh-9{G- zJTST(sf&QTZ}?4eA=y)+CANwtdGRlF*`OTvDd0Y)v8rfb$+uBrOxK`ath)vc49a|W z4VuB1m|ZHn!#94d;r+PIM3F-H&u9!OEbcHxq6Sr;~&cvc=srNf%Alfqu-tqX!z_U%dA9 z@9uW<;g8$ZBl&k9!~X92l}m??KfN=dc(V#Q9-N(