diff tests/mini/tuplestruct.d @ 1135:8ebbad15fc99

Remove struct padding which was making this test fail on 64-bit systems.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 24 Mar 2009 03:14:22 +0100
parents 76e72fdef04d
children
line wrap: on
line diff
--- a/tests/mini/tuplestruct.d	Tue Mar 24 02:46:57 2009 +0100
+++ b/tests/mini/tuplestruct.d	Tue Mar 24 03:14:22 2009 +0100
@@ -2,14 +2,14 @@
     T v;
 }
 
-alias V!(Object, int) MyV;
+alias V!(float, int) MyV;
 
 void main()
 {
-    assert(MyV.sizeof == Object.sizeof + int.sizeof);
-    auto o = new Object;
-    auto v = MyV(o, 3);
-    assert(v.v[0] is o);
+    assert(MyV.sizeof == float.sizeof + int.sizeof);
+    auto f = 3.75f;
+    auto v = MyV(f, 3);
+    assert(v.v[0] == 3.75f);
     assert(v.v[1] == 3);
 }