summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2020-06-05 11:24:37 -0500
committerFred Hornsey <hornseyf@objectcomputing.com>2020-06-05 11:24:37 -0500
commitbc148a36212a9067ade114a89a5c75eae503823e (patch)
tree74b13020bcd1efa40dbef5d64f20ec674d0fa997
parentb8840569730c83f4d229b4c285c95a206af98746 (diff)
downloadATCD-bc148a36212a9067ade114a89a5c75eae503823e.tar.gz
IDL4 Anonymous Types Test
-rw-r--r--TAO/tests/IDLv4/anonymous_types/.gitignore5
-rw-r--r--TAO/tests/IDLv4/anonymous_types/IDLv4_anonymous_types.mpc6
-rw-r--r--TAO/tests/IDLv4/anonymous_types/test.idl17
3 files changed, 28 insertions, 0 deletions
diff --git a/TAO/tests/IDLv4/anonymous_types/.gitignore b/TAO/tests/IDLv4/anonymous_types/.gitignore
new file mode 100644
index 00000000000..e1555c28d5a
--- /dev/null
+++ b/TAO/tests/IDLv4/anonymous_types/.gitignore
@@ -0,0 +1,5 @@
+/testC.cpp
+/testC.h
+/testC.inl
+/testS.cpp
+/testS.h
diff --git a/TAO/tests/IDLv4/anonymous_types/IDLv4_anonymous_types.mpc b/TAO/tests/IDLv4/anonymous_types/IDLv4_anonymous_types.mpc
new file mode 100644
index 00000000000..e16cb118748
--- /dev/null
+++ b/TAO/tests/IDLv4/anonymous_types/IDLv4_anonymous_types.mpc
@@ -0,0 +1,6 @@
+project: taoexe {
+ idlflags += --idl-version 4
+ IDL_Files {
+ test.idl
+ }
+}
diff --git a/TAO/tests/IDLv4/anonymous_types/test.idl b/TAO/tests/IDLv4/anonymous_types/test.idl
new file mode 100644
index 00000000000..b7682ed0b61
--- /dev/null
+++ b/TAO/tests/IDLv4/anonymous_types/test.idl
@@ -0,0 +1,17 @@
+/*
+ * This is just a simple test making sure anonymous types work in IDL4 since
+ * there is already a test file at tests/IDL_Test/anonymous.idl.
+ */
+
+struct TestStruct {
+ short short_array[10];
+ sequence<long> long_sequence;
+ sequence<long, 3> bounded_long_sequence;
+};
+
+// Another struct, different lengths
+struct AnotherTestStruct {
+ short short_array[9];
+ sequence<long> long_sequence;
+ sequence<long, 4> bounded_long_sequence;
+};