summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/array.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/array.idl')
-rw-r--r--TAO/tests/IDL_Test/array.idl26
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/array.idl b/TAO/tests/IDL_Test/array.idl
index aa940776ec9..0fe126593b8 100644
--- a/TAO/tests/IDL_Test/array.idl
+++ b/TAO/tests/IDL_Test/array.idl
@@ -72,6 +72,14 @@ module ABCModule
typedef octet oa1[22];
typedef octet oa2[22];
+// Test generation of Arg_Traits specialization for identical
+// arrays.
+interface array_args
+{
+ void all_arrays (in oa1 arg1,
+ in oa2 arg2);
+};
+
// This should generate unique _var and _forany types, but
// also generate TAO_String_Manager as the element type for both.
module string_array
@@ -81,3 +89,21 @@ module string_array
typedef MyString ArrayOfMyString[15];
};
+// Checks code generation for arrays and typedefs of arrays
+// when they are not declared globally or inside a module.
+interface testdata
+{
+ typedef char Arraychar[2];
+ typedef Arraychar ArrayDeChar;
+
+ struct struct2
+ {
+ Arraychar field_1;
+ ArrayDeChar field_2;
+ };
+
+ typedef sequence<Arraychar> ArraycharList;
+
+ typedef sequence<ArrayDeChar> ArrayDeCharList;
+};
+