From 143e95680f9adef4d99955a09736651c86e74aee Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Tue, 24 Mar 2009 03:14:22 +0100 Subject: [PATCH] Remove struct padding which was making this test fail on 64-bit systems. --- tests/mini/tuplestruct.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/mini/tuplestruct.d b/tests/mini/tuplestruct.d index debd94b8..b40493c6 100644 --- a/tests/mini/tuplestruct.d +++ b/tests/mini/tuplestruct.d @@ -2,14 +2,14 @@ struct V(T...) { 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); }