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