Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / test-657.cs
1 // Compiler options: test-657-p2.cs -out:test-657.exe
2
3 using System;
4 using System.Diagnostics;
5
6 namespace TestDebug
7 {
8         class Program
9         {
10                 [Conditional ("DEBUG")]
11                 public static void Excluded ()
12                 {
13                         throw new ApplicationException ("1");
14                 }
15
16                 public static int Main ()
17                 {
18                         C.Method (); // Only checks that DEBUG is defined in second file
19                         
20                         Excluded ();
21 #if DEBUG
22                         throw new ApplicationException ("1");
23 #endif
24                         return 0;
25                 }
26         }
27 }