Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-07-30 19:53:41 +0400
committerMarek Safar <marek.safar@gmail.com>2008-07-30 19:53:41 +0400
commitbf538ac1306ee3f6526f58f0985c6983c7e9de85 (patch)
tree5d3572646e082ac5d9d8133ec1079b13365e2a65 /mcs/tests/test-663.cs
parentb68203fdbf0007b9fa182656633e9f98c0668990 (diff)
New test + optimizations update
svn path=/trunk/mcs/; revision=109274
Diffstat (limited to 'mcs/tests/test-663.cs')
-rwxr-xr-xmcs/tests/test-663.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-663.cs b/mcs/tests/test-663.cs
new file mode 100755
index 00000000000..141ae889798
--- /dev/null
+++ b/mcs/tests/test-663.cs
@@ -0,0 +1,23 @@
+class A
+{
+ public static implicit operator int (A a)
+ {
+ return 1;
+ }
+
+ public static implicit operator bool (A a)
+ {
+ return false;
+ }
+}
+
+class C
+{
+ public static void Main ()
+ {
+ switch (new A ())
+ {
+ default: break;
+ }
+ }
+} \ No newline at end of file