6 public Point(int x, int y) {
11 public static Point get_zerop () {
12 Point p = new Point (0, 0);
16 public static int struct_param (Point p) {
17 if (p.x != p.y || p.y != p.z || p.z != 0)
19 /* should modify the local copy */
28 public static int Main () {
29 Point p = new Point (10, 20);
51 zp = Point.get_zerop ();
52 if (zp.x != zp.y || zp.y != zp.z || zp.z != 0)
54 if (Point.struct_param (zp) != 0)
56 if (zp.x != zp.y || zp.y != zp.z || zp.z != 0)
59 // Test that the object is properly unboxed when called through
60 // the reflection interface
61 object o = Activator.CreateInstance (typeof (Point), new object [] { 1, 2 });