summaryrefslogtreecommitdiff
path: root/TAO/tests
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2021-07-20 17:54:05 -0500
committerGitHub <noreply@github.com>2021-07-20 17:54:05 -0500
commitf8e095c8b1345f565b464c8e9b8557305f62fa00 (patch)
treec36af639c30cce1fd8950ce5e1ca88361d9452e3 /TAO/tests
parent4e4a1260bc4bb65abdde4542cbdaba20e270ed45 (diff)
parentc9568bca8c9520c7cad3aeedfba24d6232ce703a (diff)
downloadATCD-f8e095c8b1345f565b464c8e9b8557305f62fa00.tar.gz
Merge pull request #1621 from iguessthislldo/igtd/stdint
Header File for TAO_IDL Supported IDL Features
Diffstat (limited to 'TAO/tests')
-rw-r--r--TAO/tests/IDLv4/anonymous_types/test.idl9
-rw-r--r--TAO/tests/IDLv4/explicit_ints/main.cpp9
-rw-r--r--TAO/tests/IDLv4/explicit_ints/test.idl9
3 files changed, 27 insertions, 0 deletions
diff --git a/TAO/tests/IDLv4/anonymous_types/test.idl b/TAO/tests/IDLv4/anonymous_types/test.idl
index eee64242483..d8e95fee31e 100644
--- a/TAO/tests/IDLv4/anonymous_types/test.idl
+++ b/TAO/tests/IDLv4/anonymous_types/test.idl
@@ -3,6 +3,15 @@
* there is already a test file at tests/IDL_Test/anonymous.idl.
*/
+#include __TAO_IDL_FEATURES
+#ifdef TAO_IDL_HAS_ANONYMOUS_TYPES
+# if !TAO_IDL_HAS_ANONYMOUS_TYPES
+# error "Expecting macro to be true"
+# endif
+#else
+# error "Expecting macro to be defined"
+#endif
+
struct TestStruct {
short short_array[10];
short another_short_array[10];
diff --git a/TAO/tests/IDLv4/explicit_ints/main.cpp b/TAO/tests/IDLv4/explicit_ints/main.cpp
index 7aaa38a8d9c..43ff6583975 100644
--- a/TAO/tests/IDLv4/explicit_ints/main.cpp
+++ b/TAO/tests/IDLv4/explicit_ints/main.cpp
@@ -1,5 +1,14 @@
#include "testC.h"
+#include "tao/idl_features.h"
+#ifdef TAO_IDL_HAS_EXPLICIT_INTS
+# if !TAO_IDL_HAS_EXPLICIT_INTS
+# error "Expecting macro to be true"
+# endif
+#else
+# error "Expecting macro to be defined"
+#endif
+
#include "ace/OS_NS_stdlib.h"
#include "ace/OS_main.h"
#include "ace/streams.h"
diff --git a/TAO/tests/IDLv4/explicit_ints/test.idl b/TAO/tests/IDLv4/explicit_ints/test.idl
index 5cf247fba6d..426a962d857 100644
--- a/TAO/tests/IDLv4/explicit_ints/test.idl
+++ b/TAO/tests/IDLv4/explicit_ints/test.idl
@@ -1,3 +1,12 @@
+#include __TAO_IDL_FEATURES
+#ifdef TAO_IDL_HAS_EXPLICIT_INTS
+# if !TAO_IDL_HAS_EXPLICIT_INTS
+# error "Expecting macro to be true"
+# endif
+#else
+# error "Expecting macro to be defined"
+#endif
+
#include "tao/Int8Seq.pidl"
#include "tao/UInt8Seq.pidl"
#include "tao/OctetSeq.pidl"