2 using System.Runtime.InteropServices;
6 [StructLayout (LayoutKind.Sequential)]
7 public struct SimpleStruct {
14 [DllImport ("libtest.so", EntryPoint="mono_test_return_vtype")]
15 public static extern SimpleStruct mono_test_return_vtype ();
18 public static int Main () {
19 SimpleStruct ss = mono_test_return_vtype ();
21 Console.WriteLine ("A: " + ss.a);
22 Console.WriteLine ("B: " + ss.b);
23 Console.WriteLine ("C: " + ss.c);
24 Console.WriteLine ("D: " + ss.d);
26 if (!ss.a && ss.b && !ss.c && ss.d == "TEST")