summaryrefslogtreecommitdiff
path: root/ACE/TAO/tests/IDL_Test/old_constants.idl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tests/IDL_Test/old_constants.idl')
-rw-r--r--ACE/TAO/tests/IDL_Test/old_constants.idl74
1 files changed, 74 insertions, 0 deletions
diff --git a/ACE/TAO/tests/IDL_Test/old_constants.idl b/ACE/TAO/tests/IDL_Test/old_constants.idl
new file mode 100644
index 00000000000..6c8a8cc8301
--- /dev/null
+++ b/ACE/TAO/tests/IDL_Test/old_constants.idl
@@ -0,0 +1,74 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/IDL_Test
+//
+// = FILENAME
+// old_constants.idl
+//
+// = DESCRIPTION
+// Tests of const IDL constructs
+//
+// = AUTHORS
+// Andy Gokhale <gokhale@dre.vanderbilt.edu>
+//
+// ============================================================================
+
+module OldConstants
+{
+ const short l = 4;
+
+ enum N
+ {
+ zero,
+ un,
+ deux,
+ trois
+ };
+
+ exception E
+ {
+ short cause ;
+ };
+
+ module M
+ {
+ const short l = 4;
+
+ enum N
+ {
+ zero,
+ un,
+ deux,
+ trois
+ };
+
+ exception E
+ {
+ short cause ;
+ };
+
+ interface A
+ {
+ const short l = 4;
+
+ enum N
+ {
+ zero,
+ un,
+ deux,
+ trois
+ };
+
+ exception E
+ {
+ short cause ;
+ };
+
+ N foo (in N x, out N y, inout N z);
+ };
+ };
+};
+