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:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2002-04-12 22:50:22 +0400
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2002-04-12 22:50:22 +0400
commita11971b3edb56f961a2c9d7c61816f7bfd70095c (patch)
tree2767ad966b47a0a1ac9a5c0d1f8b8f8b519831e0 /mcs/tests/test-102.cs
parent8ea6a01db9cfebf61aec72cbc1362358ced695eb (diff)
2002-04-05 Ravi Pratap <ravi@ximian.com>
* test-101.cs : Add test from Paolo. * test-102.cs : Another test for attribute emission. svn path=/trunk/mcs/; revision=3789
Diffstat (limited to 'mcs/tests/test-102.cs')
-rw-r--r--mcs/tests/test-102.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/test-102.cs b/mcs/tests/test-102.cs
new file mode 100644
index 00000000000..11e8b04aa0e
--- /dev/null
+++ b/mcs/tests/test-102.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Reflection;
+
+[assembly: AssemblyTitle ("Foo")]
+[assembly: AssemblyVersion ("1.0.2")]
+
+namespace N1 {
+
+ [AttributeUsage (AttributeTargets.All)]
+ public class MineAttribute : Attribute {
+
+ string name;
+
+ public MineAttribute (string s)
+ {
+ name = s;
+ }
+ }
+
+ public class Foo {
+
+ int i;
+
+ [return : Mine ("Foo")]
+ public static int Main ()
+ {
+ return 0;
+ }
+ }
+}