+2001-12-30 Miguel de Icaza <miguel@ximian.com>
+
+ * test-67.cs: Improve this test.
+
2001-12-29 Ravi Pratap <ravi@ximian.com>
* test-69.cs : Add. This tests support for methods which are
{
I.GetTextFn _ = I.GetText;
+ Console.WriteLine ("Value: " + I.GetText);
X x = new X ();
Thread thr = new Thread (new ThreadStart (x.Thread_func));
MemberInfo [] mi = t.FindMembers (MemberTypes.Method, BindingFlags.Static | BindingFlags.NonPublic,
Type.FilterName, "MyFilter");
+ Console.WriteLine ("FindMembers called, mi = " + mi);
+ Console.WriteLine (" Count: " + mi.Length);
if (!filter (mi [0], "MyFilter"))
return 1;
if (!t)
j = 1;
}
+
+ static void w (int x)
+ {
+ System.Console.WriteLine (" " + x);
+ }
static int Main ()
{
else
error++;
+ w (1);
if (f)
error++;
else
ok |= 2;
+ w(2);
if (t)
ok |= 4;
else
ok |= 16;
int i = 0;
+ w(3);
do {
i++;
} while (!(i > 5));
else
ok |= 32;
+ w(100);
+ System.Console.WriteLine ("Value: " + t);
do {
i++;
} while (!t);
[FieldOffset (12)] public int bottom;
}
+[StructLayout (LayoutKind.Explicit)]
+struct A {
+ [FieldOffset (0)]
+ public int a;
+ [FieldOffset (0)]
+ public byte b1;
+ [FieldOffset (1)]
+ public byte b2;
+ [FieldOffset (2)]
+ public byte b3;
+ [FieldOffset (3)]
+ public byte b4;
+}
+
public class Blah {
[DllImport ("Kernel32.dll")]
if (!PtInRect (ref r, p))
return 1;
+
+ A a = new A ();
+
+ a.a = 0x12345678;
+
+ if (a.b1 != 0x78)
+ return 2;
+ if (a.b2 != 0x56)
+ return 3;
+ if (a.b3 != 0x34)
+ return 4;
+ if (a.b4 != 0x12)
+ return 5;
Console.WriteLine ("Point lies inside rect");
Console.WriteLine ("Test passes");