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-21 21:49:58 +0400
committerMarek Safar <marek.safar@gmail.com>2008-07-21 21:49:58 +0400
commit0330e50d981de951d387cddc164eb08ef0ecf203 (patch)
treeb933253f4692c7c9ee2c5c96d4b2f98cc2e420b4 /mcs/tests/test-657.cs
parentcc0e176d4f72f3880260d9dcd296e8a3854ad746 (diff)
2008-07-21 Marek Safar <marek.safar@gmail.com>
A test for bug #409045 svn path=/trunk/mcs/; revision=108393
Diffstat (limited to 'mcs/tests/test-657.cs')
-rwxr-xr-xmcs/tests/test-657.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/mcs/tests/test-657.cs b/mcs/tests/test-657.cs
new file mode 100755
index 00000000000..aefc2f85b56
--- /dev/null
+++ b/mcs/tests/test-657.cs
@@ -0,0 +1,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");
+ }
+
+ static int Main ()
+ {
+ C.Method (); // Only checks that DEBUG is defined in second file
+
+ Excluded ();
+#if DEBUG
+ throw new ApplicationException ("1");
+#endif
+ return 0;
+ }
+ }
+}