summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-24 17:10:43 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-24 17:10:43 +0000
commit1a5ab16e9c46942a1f3b4c63136b61770c2d1cce (patch)
tree49b5f4bede90f72c1d3a5b0adc4798f267296369
parent70a6bd8a36fb5a8fd0bf4638007208e8ea422c45 (diff)
downloadATCD-1a5ab16e9c46942a1f3b4c63136b61770c2d1cce.tar.gz
Added example.
-rw-r--r--TAO/tests/IDL_Test/included.idl8
-rw-r--r--TAO/tests/IDL_Test/including.idl13
2 files changed, 17 insertions, 4 deletions
diff --git a/TAO/tests/IDL_Test/included.idl b/TAO/tests/IDL_Test/included.idl
index 2b04e959bd6..ca0c246bb8f 100644
--- a/TAO/tests/IDL_Test/included.idl
+++ b/TAO/tests/IDL_Test/included.idl
@@ -20,8 +20,14 @@
// ============================================================================
// Included in IDL file 'including.idl'.
-module A
+module Aok
{
typedef sequence<double> Seq1Type;
};
+enum Agog
+{
+ Agog1,
+ Agog2,
+ Agog3
+};
diff --git a/TAO/tests/IDL_Test/including.idl b/TAO/tests/IDL_Test/including.idl
index dbce7a4b6be..ae95167818e 100644
--- a/TAO/tests/IDL_Test/including.idl
+++ b/TAO/tests/IDL_Test/including.idl
@@ -21,8 +21,6 @@
#include "included.idl"
-// includes module A and sequence typedef.
-
enum choice
{
dog
@@ -30,6 +28,15 @@ enum choice
union myUnion switch (choice)
{
- case dog: A::Seq1Type cat;
+ // Typedef is in included file
+ case dog: Aok::Seq1Type cat;
+};
+
+// Enum discriminator is in included file
+union Bog switch (Agog)
+{
+ case Agog1: long bog1;
+ case Agog2: long bog2;
+ case Agog3: long bog3;
};