From b76292f8f22817401f61158a42afcfc210102657 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Apr 2009 16:58:01 +0200 Subject: Fix type alignment code to examine all members of a type The alignment of a type is the alignment of its most strictly aligned member. --- tests/cxx/hybrid/choice/driver.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/cxx/hybrid/choice/driver.cxx') diff --git a/tests/cxx/hybrid/choice/driver.cxx b/tests/cxx/hybrid/choice/driver.cxx index 0ba13de..b781e24 100644 --- a/tests/cxx/hybrid/choice/driver.cxx +++ b/tests/cxx/hybrid/choice/driver.cxx @@ -35,6 +35,8 @@ main (int argc, char* argv[]) y.a (123); z = y; assert (z.a () == 123); + z.c (123456789); + assert (z.c () == 123456789); } #endif -- cgit v1.1