diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-11-20 01:31:45 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-11-20 01:31:45 +0300 |
commit | 71e4f3fbbf75409899002f6d1526441dd546a885 (patch) | |
tree | 0cedf243f0cb093b1ff555ebe7a9011633167022 /mcs/tests/test-49.cs | |
parent | 9cf7739389459847ba546325005f554505800f32 (diff) |
Improve test
svn path=/trunk/mcs/; revision=9094
Diffstat (limited to 'mcs/tests/test-49.cs')
-rwxr-xr-x | mcs/tests/test-49.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/mcs/tests/test-49.cs b/mcs/tests/test-49.cs index e96b2c9fa5a..3cef3539c1d 100755 --- a/mcs/tests/test-49.cs +++ b/mcs/tests/test-49.cs @@ -432,6 +432,21 @@ class X { } return 0; } + + enum My : byte { + A + } + + static int test_casts (int n) + { + switch (n) { + case (int) (char) (int) My.A: + return 1; + + default: + return 2; + } + } static int Main () { @@ -535,7 +550,10 @@ class X { return 39; if (test_string_multiple_targets ("E") != 0) return 40; - + + if (test_casts (0) != 1) + return 41; + Console.WriteLine ("All tests pass"); return 0; } |