Merge pull request #2998 from lateralusX/jlorenss/win-x64-full-aot-support
[mono.git] / mcs / tests / test-574.cs
index e0243174b990dfeea672ecaa76112d07664180ae..8aa00c88ead932bb9c696c3f1eecac987d99abe9 100644 (file)
@@ -1,15 +1,25 @@
-// Compiler options: -unsafe
+using System;
+using System.Threading;
 
-public class aClass
-{
-       public unsafe struct foo_t
-       {
-               public fixed char b[16];
-       }
-       
-       public static unsafe void Main(string[] args)
-       {
-               foo_t bar;
-               char* oo = bar.b;
+enum A {
+  Hello,
+  Bye
+}
+
+class X {
+
+       public static int Main () {
+               try {
+                       switch (0) {
+                       default:
+                         throw new Exception("FOO");
+                         break;
+                       }
+               } catch (Exception) {
+                       return 0;
+               }
+               
+               return 1;
        }
 }
+