diff options
Diffstat (limited to 'tests/cxx')
-rw-r--r-- | tests/cxx/hybrid/choice/driver.cxx | 2 | ||||
-rw-r--r-- | tests/cxx/hybrid/choice/test.xsd | 1 |
2 files changed, 3 insertions, 0 deletions
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 @@ <choice> <element name="a" type="int"/> <element name="b" type="string"/> + <element name="c" type="long"/> </choice> </complexType> |