summaryrefslogtreecommitdiff
path: root/modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl')
-rw-r--r--modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl90
1 files changed, 90 insertions, 0 deletions
diff --git a/modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl b/modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl
new file mode 100644
index 00000000000..f47231c023d
--- /dev/null
+++ b/modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl
@@ -0,0 +1,90 @@
+// $Id$
+/**
+ * @file Keyword_Clash.idl
+ * @author Jeff Parsons <j.parsons@vanderbilt.edu>
+ *
+ * Tests handling of C++ keywords and escaped identifiers (IDL
+ * keywords) in generating CIAO servant code and executor IDL.
+ */
+
+#ifndef KEYWORD_CLASH_IDL
+#define KEYWORD_CLASH_IDL
+
+#include "Components.idl"
+
+module _interface
+{
+ interface _attribute
+ {
+ exception _inout {};
+ };
+};
+
+module static
+{
+ module _readonly
+ {
+ module protected
+ {
+ interface virtual
+ {
+ };
+
+ eventtype _eventtype
+ {
+ private virtual _public;
+ };
+ };
+ };
+};
+
+eventtype _eventtype
+{
+ public string _factory;
+ private string friend;
+ public string _wstring;
+};
+
+interface _oneway {};
+
+module _component
+{
+ component _out supports static::_readonly::protected::virtual
+ {
+ provides _interface::_attribute _local;
+ provides _oneway else;
+ provides static::_readonly::protected::virtual while;
+
+ attribute long _abstract;
+
+ uses multiple _interface::_attribute if;
+ uses multiple _oneway mutable;
+ uses multiple static::_readonly::protected::virtual register;
+
+ uses _interface::_attribute _union;
+ uses _oneway _struct;
+ uses static::_readonly::protected::virtual volatile;
+
+ publishes _eventtype _object;
+ publishes static::_readonly::protected::_eventtype do;
+
+ consumes _eventtype _const;
+ consumes static::_readonly::protected::_eventtype const_cast;
+
+ emits _eventtype class;
+ emits static::_readonly::protected::_eventtype delete;
+ };
+
+ home new manages _out
+ {
+ static::_readonly::protected::virtual
+ catch (
+ inout static::_readonly::protected::_eventtype try)
+ raises (_interface::_attribute::_inout);
+
+ finder continue (in _interface::_attribute _inout);
+ };
+};
+
+#endif /* KEYWORD_CLASH_IDL */
+