Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / tests / marshal4.cs
index 9c01521306b53c617702ae6dc98516968f367057..b13926c9759283ab9c4f6edad8a7113963a87cef 100755 (executable)
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
 
 public class Test {
 
-       [DllImport ("libtest.so", EntryPoint="mono_test_marshal_delegate_struct")]
+       [DllImport ("libtest", EntryPoint="mono_test_marshal_delegate_struct")]
        public static extern int mono_test_marshal_delegate_struct (DelegateStruct s);
 
        public delegate int WndProc (int a);
@@ -24,7 +24,7 @@ public class Test {
                int size = Marshal.SizeOf (typeof (DelegateStruct));
                
                Console.WriteLine ("DelegateStruct:" + size);
-               if (size != 8)
+               if (size != 2 * sizeof(void *)) // not right for 64 bit pointers which can be 4 byte aligned
                        return 1;
                
                ss.a = 123;