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 ++ tests/cxx/hybrid/choice/test.xsd | 1 + 2 files changed, 3 insertions(+) (limited to 'tests') 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 diff --git a/tests/cxx/hybrid/choice/test.xsd b/tests/cxx/hybrid/choice/test.xsd index 9fe5f5c..2b8dbf6 100644 --- a/tests/cxx/hybrid/choice/test.xsd +++ b/tests/cxx/hybrid/choice/test.xsd @@ -26,6 +26,7 @@ + -- cgit v1.1