summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/including.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/including.idl')
-rw-r--r--TAO/tests/IDL_Test/including.idl20
1 files changed, 20 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/including.idl b/TAO/tests/IDL_Test/including.idl
index 482aebfd071..7a103555398 100644
--- a/TAO/tests/IDL_Test/including.idl
+++ b/TAO/tests/IDL_Test/including.idl
@@ -96,5 +96,25 @@ interface MyInt
A::MyStructA op (in A::MyStructA ab);
};
+// A different enum with the same enum values is
+// defined in the base interface in the same scope
+// in another IDL file included by this one. The
+// construction is legal and should be accepted.
+module RootModule
+{
+ module SUBMODULE1
+ {
+ interface ChildIF : ParentIF
+ {
+ enum DifferentMode
+ {
+ NORMAL,
+ FAULTY,
+ UNKNOWN
+ };
+ };
+ };
+};
+
#endif /* IDL_TEST_INCLUDING_IDL */