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>2004-02-16 12:35:07 +0300
committerMarek Safar <marek.safar@gmail.com>2004-02-16 12:35:07 +0300
commit8f1072d4da06d08a066c4128bc4ab85f3387b8a4 (patch)
treede783db525260d63290a895bc59b8a8f95e2f2bc /mcs/tests/test-230.cs
parent130f5dd764ddecbf7215ddbeb636677157526fe9 (diff)
2004-02-16 Marek Safar <marek.safar@seznam.cz>
* test-230.cs: test for module attributes. svn path=/trunk/mcs/; revision=23120
Diffstat (limited to 'mcs/tests/test-230.cs')
-rw-r--r--mcs/tests/test-230.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-230.cs b/mcs/tests/test-230.cs
new file mode 100644
index 00000000000..5b29a497e68
--- /dev/null
+++ b/mcs/tests/test-230.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Reflection;
+using System.Diagnostics;
+
+[module: DebuggableAttribute (false, false)]
+
+class TestClass {
+ static int Main()
+ {
+ Module[] moduleArray;
+ moduleArray = Assembly.GetExecutingAssembly().GetModules(false);
+
+ Module myModule = moduleArray[0];
+ object[] attributes;
+
+ attributes = myModule.GetCustomAttributes(typeof (DebuggableAttribute), false);
+ if (attributes[0] != null)
+ {
+ Console.WriteLine ("Succeeded");
+ return 0;
+ }
+ return 1;
+ }
+}