2005-04-12 Dick Porter <dick@ximian.com>
[mono.git] / mcs / ilasm / tests / test-data-b.il
1 //
2 // Test emitting data and the field mapping with the data
3 // defined after the field (and in global scope)
4 //
5 // Author(s):
6 //  Jackson Harper (Jackson@LatitudeGeo.com)
7 //
8 // (C) 2003 Jackson Harper, All rights reserved
9 //
10
11 .assembly extern mscorlib { }
12 .assembly 'test-data-b' { }
13
14
15 .class public T extends [mscorlib]System.Object {
16
17         
18         .field private static int32 some_field at some_data
19
20         .method public static int32 main ()
21         {
22                 .entrypoint
23
24                 ldsfld int32 T::some_field
25                 brfalse fail
26
27         pass:
28                 ldstr "PASS"
29                 call void [mscorlib]System.Console::WriteLine (string)
30                 ldc.i4.0
31                 ret
32         fail:
33                 ldstr "FAIL"
34                 call void [mscorlib]System.Console::WriteLine (string)
35                 ldc.i4.1
36                 ret
37         }
38 }
39
40 .data some_data = int32 (1)
41