summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/sequence_anonymous.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/sequence_anonymous.idl')
-rw-r--r--TAO/tests/IDL_Test/sequence_anonymous.idl41
1 files changed, 41 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/sequence_anonymous.idl b/TAO/tests/IDL_Test/sequence_anonymous.idl
new file mode 100644
index 00000000000..416d311bd9b
--- /dev/null
+++ b/TAO/tests/IDL_Test/sequence_anonymous.idl
@@ -0,0 +1,41 @@
+//=============================================================================
+/**
+ * @file sequence_anonymous.idl
+ *
+ * This file contains examples of IDL code that has
+ * caused problems in the past for the TAO IDL
+ * compiler. This test is to make sure the problems
+ * stay fixed.
+ *
+ *
+ * @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
+ */
+//=============================================================================
+
+// Bounded string elements of a sequence,
+// require the use of CORBA_Any::to_char.
+interface seqTest
+{
+ typedef sequence< string<12> > dozens;
+
+ void send_dozen (inout dozens bouquets);
+};
+
+// Anonymous sequence members must be unique types even if the
+// sequence itself is not, so the member name has been
+// incorported into the sequence class name. #if !defined guards
+// are generated around code for the inner anonymous sequences.
+struct twinStruct
+ {
+ sequence<sequence<short> > and_;
+ sequence<sequence<short> > or_;
+ };
+
+// Nested sequences
+typedef sequence<sequence<short, 5> > outside;
+
+struct nestedSeqStruct
+{
+ sequence<sequence<outside>, 7> inside;
+};
+