Merge pull request #3081 from lambdageek/coop-no-prof
[mono.git] / mcs / tests / test-240.cs
index 7ee99c54ed95f3fc1f6e19c284a0a597a3ad18a6..feffcff430e6037efbe7a8bb88c9e5f2cfec9a60 100644 (file)
@@ -4,17 +4,18 @@ using System;
 using System.Diagnostics;
 
 class TestClass {
+       static int return_code = 1;
     
         [Conditional("C1"), Conditional("C2")]    
         public static void ConditionalMethod()
         {
             Console.WriteLine ("Succeeded");
-            Environment.Exit (0);
+            return_code = 0;
         }
     
-        static int Main()
+        public static int Main()
         {
             ConditionalMethod ();
-            return 1;
+            return return_code;
         }
 }