Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility...
[mono-project.git] / mcs / tests / test-621.cs
blobaf24ecc011b2d11a4b827d73096cc0e8168e606f
1 //
2 // Fixed, incorporated into test
3 //
4 using System;
6 using System.Runtime.InteropServices;
8 [StructLayout (LayoutKind.Explicit)]
9 struct A {
10 [FieldOffset (0)]
11 public int a;
12 [FieldOffset (0)]
13 public byte b1;
14 [FieldOffset (1)]
15 public byte b2;
16 [FieldOffset (2)]
17 public byte b3;
18 [FieldOffset (3)]
19 public byte b4;
22 class X {
23 static void Main ()
25 A a = new A ();
27 a.a = 0x12345678;
29 Console.WriteLine ("b1: " + a.b1);
30 Console.WriteLine ("b2: " + a.b2);
31 Console.WriteLine ("b3: " + a.b3);
32 Console.WriteLine ("b4: " + a.b4);