summaryrefslogtreecommitdiff
path: root/tests/IDL_Test/array_anon_nested.idl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/IDL_Test/array_anon_nested.idl')
-rw-r--r--tests/IDL_Test/array_anon_nested.idl35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/IDL_Test/array_anon_nested.idl b/tests/IDL_Test/array_anon_nested.idl
new file mode 100644
index 00000000000..d10972445c6
--- /dev/null
+++ b/tests/IDL_Test/array_anon_nested.idl
@@ -0,0 +1,35 @@
+
+//=============================================================================
+/**
+ * @file array_anon_nested.idl
+ *
+ * $Id$
+ *
+ * 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.
+ */
+//=============================================================================
+
+
+/// There was a problem generating the *_Forany
+/// for the inner array. This construct is in a separate
+/// IDL file for two reasons - (1) to avoid the -GA
+/// option, which does not work when there are constructs
+/// that result in nested C++ classes, and (2) to avoid
+/// the RTI DDS processor, which chokes on this unusual
+/// IDL.
+typedef struct teststruct
+{
+ char b[4];
+
+ struct embeddedstruct
+ {
+ char a[4];
+ } estruct;
+
+} tstruct;