summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/exception_misuse2.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/exception_misuse2.idl')
-rw-r--r--TAO/tests/IDL_Test/exception_misuse2.idl17
1 files changed, 17 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/exception_misuse2.idl b/TAO/tests/IDL_Test/exception_misuse2.idl
new file mode 100644
index 00000000000..d5deeeebd22
--- /dev/null
+++ b/TAO/tests/IDL_Test/exception_misuse2.idl
@@ -0,0 +1,17 @@
+/**
+ * @file exception_misuse2.idl
+ *
+ * https://github.com/DOCGroup/ACE_TAO/issues/2015
+ *
+ * tao_idl shall reject use of exception for struct member
+ *
+ */
+module exception_misuse2 {
+ exception exc_t {
+ string reason;
+ };
+ struct mystruct {
+ exc_t ex;
+ };
+};
+