summaryrefslogtreecommitdiff
path: root/TAO/tests/DynAny_Test/da_tests.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/DynAny_Test/da_tests.idl')
-rw-r--r--TAO/tests/DynAny_Test/da_tests.idl53
1 files changed, 53 insertions, 0 deletions
diff --git a/TAO/tests/DynAny_Test/da_tests.idl b/TAO/tests/DynAny_Test/da_tests.idl
new file mode 100644
index 00000000000..cc271b5778b
--- /dev/null
+++ b/TAO/tests/DynAny_Test/da_tests.idl
@@ -0,0 +1,53 @@
+/* -*- C++ -*- */
+//
+// $Id$
+
+#include <orb.idl>
+
+module DynAnyTests
+{
+ struct enclosed_struct
+ {
+ float f;
+ short s;
+ };
+
+ struct test_struct
+ {
+ char c;
+ CORBA::ShortSeq ss;
+ enclosed_struct es;
+ };
+
+ typedef sequence<string<8> > test_seq;
+ typedef sequence<short> SeqShort;
+
+ const unsigned long DIM = 2;
+ typedef long test_array [DIM];
+
+ enum test_enum
+ {
+ TE_ZEROTH,
+ TE_FIRST,
+ TE_SECOND,
+ TE_THIRD,
+ TE_FOURTH
+ };
+
+ union test_union switch (test_enum)
+ {
+ case TE_SECOND: CORBA::TypeCode tc;
+ case TE_FOURTH: test_enum te;
+ default: short s;
+ case TE_THIRD: string str;
+ case TE_ZEROTH: octet o;
+ };
+
+ typedef test_struct test_struct_alias;
+ typedef test_union test_union_alias;
+
+ union test_implicit_def switch (boolean) {
+ case TRUE :
+ test_enum tenum;
+ } ;
+};