summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/keywords.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/IDL_Test/keywords.idl')
-rw-r--r--TAO/tests/IDL_Test/keywords.idl20
1 files changed, 12 insertions, 8 deletions
diff --git a/TAO/tests/IDL_Test/keywords.idl b/TAO/tests/IDL_Test/keywords.idl
index 561e511b996..08f7233ea91 100644
--- a/TAO/tests/IDL_Test/keywords.idl
+++ b/TAO/tests/IDL_Test/keywords.idl
@@ -1,4 +1,3 @@
-
//=============================================================================
/**
* @file keywords.idl
@@ -8,31 +7,36 @@
* compiler. This test is to make sure the problems
* stay fixed.
*
- *
* @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
*/
//=============================================================================
-
// All these identifiers should be accepted, but
// prepended with _cxx_.
-// 'private' and 'public' have been commented out because they are now, in
-// addition to being C++ keywords, IDL keywords, and thus are illegal
-// except when used as such.
+// IDL identifiers are escaped using _
struct Keywords
{
unsigned short or;
char or_eq;
-// octet private;
+ octet _private;
boolean protected;
-// float public;
+ float _public;
double int;
};
+struct _Object {
+ long long id;
+};
+typedef sequence<_Object> ObjectSeq;
+struct Objects {
+ ObjectSeq objs;
+};
+
interface Testing
{
void foo (in string namespace);
+ void bar (in Objects foo);
};