[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-272.cs
blob3afbfe5f95db20417ed500688ff4b8b30e4f6644
1 enum Foo { Bar };
3 class BazAttribute : System.Attribute
5 public BazAttribute () {}
6 public BazAttribute (Foo foo1) {}
7 public Foo foo2;
8 public Foo foo3 { set {} get { return Foo.Bar; } }
9 };
11 class Test
13 [Baz (Foo.Bar)] void f0() {}
14 [Baz ((Foo) 1)] void f1() {}
15 [Baz (foo2 = (Foo) 2)] void f2() {}
16 [Baz (foo3 = (Foo) 3)] void f3() {}
17 public static void Main() { }