2 // Test emitting data and the field mapping with the data
3 // defined in another class. (Actually all .data is global,
4 // even if it is defined in a class)
7 // Jackson Harper (Jackson@LatitudeGeo.com)
9 // (C) 2003 Jackson Harper, All rights reserved
12 .assembly extern mscorlib { }
13 .assembly 'test-data-b' { }
15 .class public Stub extends [mscorlib]System.Object {
16 .data some_data = int32 (1)
19 .class public T extends [mscorlib]System.Object {
21 .field private static int32 some_field at some_data
23 .method public static int32 main ()
27 ldsfld int32 T::some_field
32 call void [mscorlib]System.Console::WriteLine (string)
37 call void [mscorlib]System.Console::WriteLine (string)