[xBuild] Support use of properties defined in Choose elements in project references
[mono.git] / mono / tests / verifier / invalid_il_cannot_reference_literal_field.il
1 .assembly extern mscorlib
2 {
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly 'repro'
7 {
8   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() =  (
9                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
10                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
11
12   .hash algorithm 0x00008004
13   .ver  0:0:0:0
14 }
15 .module repro.exe // GUID = {598DED0A-DD7D-47FF-B2BA-8C50F6437129}
16
17
18   .class private auto ansi beforefieldinit Program
19         extends [mscorlib]System.Object
20   {
21     .field public static  literal  int32 A = int32(0x0000000a)
22     .field public static  int32 B
23
24     // method line 1
25     .method public hidebysig  specialname  rtspecialname 
26            instance default void '.ctor' ()  cil managed 
27     {
28         // Method begins at RVA 0x20ec
29         // Code size 7 (0x7)
30         .maxstack 8
31         IL_0000:  ldarg.0 
32         IL_0001:  call instance void object::'.ctor'()
33         IL_0006:  ret 
34     } // end of method Program::.ctor
35
36     // method line 2
37     .method private static  hidebysig 
38            default int32 Main ()  cil managed 
39     {
40         // Method begins at RVA 0x20f4
41         .entrypoint
42         // Code size 8 (0x8)
43         .maxstack 1
44         .locals init (
45                 int32   V_0)
46         IL_0000:  ldsfld int32 Program::A
47         IL_0005:  stloc.0 
48         IL_0006:  ldloc.0 
49         IL_0007:  ret 
50     } // end of method Program::Main
51
52   } // end of class Program
53