summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/valuetype.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/valuetype.idl')
-rw-r--r--TAO/tests/IDL_Test/valuetype.idl9
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/valuetype.idl b/TAO/tests/IDL_Test/valuetype.idl
index a31a8eb7938..7a53a52193c 100644
--- a/TAO/tests/IDL_Test/valuetype.idl
+++ b/TAO/tests/IDL_Test/valuetype.idl
@@ -33,6 +33,15 @@ valuetype MyValueType
factory make_one ();
};
+enum ValueSort2 {
+ SYMBOL_TYPE2
+};
+
+union MyValueTypeUnion switch (ValueSort2) {
+ case SYMBOL_TYPE2:
+ MyValueType symbol_val;
+};
+
// The original bug was caused by the default factory visitor
// constructing a temporary arg of this field type. When the
// arg was then destroyed, it called its base destroyer