[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / test-796.cs
1 // Compiler options: -warnaserror -warn:4
2
3 // No CS0649 warnings
4
5 using System;
6
7 struct S
8 {
9 }
10
11 class C2
12 {
13         S s;
14         
15         void Foo ()
16         {
17                 Func<string> f = s.ToString;
18                 Console.WriteLine (f);
19         }
20 }
21
22 [Foo (Product = "Mono")]
23 class Program
24 {
25         S s;
26         
27         void Test ()
28         {
29                 s.ToString ();
30         }
31         
32         public static void Main ()
33         {
34                 new Program ().Test ();
35         }
36 }
37
38 class FooAttribute : Attribute
39 {
40         public string Product;
41
42         public FooAttribute ()
43         {
44         }
45 }