if (a.Y != 2)
return 2;
- a.X = 500000000000055l;
- a.Y = -12345678900l;
+ a.X = 500000000000055L;
+ a.Y = -12345678900L;
- if (a.X != 500000000000055l)
+ if (a.X != 500000000000055L)
return 3;
- if (a.Y != -12345678900l)
+ if (a.Y != -12345678900L)
return 4;
return 0;
}
return 4;
return 0;
}
+
+ class BoxedVector2d
+ {
+ public Vector2d v;
+ }
+
+ public static int test_0_vector2d_set_x () {
+ var bv = new BoxedVector2d ();
+ var xy = new Vector2d ();
+ xy.X = bv.v.X;
+
+ if (xy.X != 0)
+ return 1;
+ if (xy.Y != 0)
+ return 2;
+ return 0;
+ }
+
public static int Main (String[] args) {
return TestDriver.RunTests (typeof (SimdTests), args);
}