New test case for the breaking build.
authorRaja R Harinath <harinath@hurrynot.org>
Fri, 18 Jun 2004 07:39:32 +0000 (07:39 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Fri, 18 Jun 2004 07:39:32 +0000 (07:39 -0000)
svn path=/trunk/mcs/; revision=29854

mcs/tests/ChangeLog
mcs/tests/test-272.cs [new file with mode: 0644]

index 939050da494175ee9b68ef98b2a7674a7edc2833..8dbf63e87d8af43a15385c2032dfba37f02e0ad8 100755 (executable)
@@ -1,3 +1,7 @@
+2004-06-18  Raja R Harinath  <rharinath@novell.com>
+
+       * test-272.cs: New test case for the breaking build.
+
 2004-06-13  Martin Baulig  <martin@ximian.com>
 
        * gen-57.cs: New test.
diff --git a/mcs/tests/test-272.cs b/mcs/tests/test-272.cs
new file mode 100644 (file)
index 0000000..f5bb729
--- /dev/null
@@ -0,0 +1,17 @@
+enum Foo { Bar };
+
+class BazAttribute : System.Attribute 
+{
+       public BazAttribute (Foo foo1) {}
+       public Foo foo2;
+       public Foo foo3 { set {} }
+};
+
+class Test 
+{
+       [Baz (Foo.Bar)]        void f0() {}
+       [Baz ((Foo) 1)]        void f1() {}
+       [Baz (foo2 = (Foo) 2)] void f2() {}
+       [Baz (foo3 = (Foo) 3)] void f3() {}
+       static void Main() { }
+}