diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-19 21:19:23 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-19 21:19:23 +0000 |
commit | db9d98e1e0b576bb6cf8c2fa61e683d80cc6de6b (patch) | |
tree | 939e3ca6a0058948b70b2ef5cf5159d79243a30b | |
parent | e1155af1456339daa49d0c3e7efe94f09eebfb81 (diff) | |
download | ATCD-db9d98e1e0b576bb6cf8c2fa61e683d80cc6de6b.tar.gz |
Added another test example to the file.
-rw-r--r-- | TAO/tests/IDL_Test/union.idl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/tests/IDL_Test/union.idl b/TAO/tests/IDL_Test/union.idl index d1cd600d474..fa2e4cb1607 100644 --- a/TAO/tests/IDL_Test/union.idl +++ b/TAO/tests/IDL_Test/union.idl @@ -115,3 +115,43 @@ union outer switch (disc_outer) case out1: inner1 first; case out2: inner2 second; }; + +module UnionTest3 +{ + enum ValChoice + { + intVal, + realVal + }; + + union ValType switch(ValChoice) + { + case intVal: long integerValue; + case realVal: double realValue; + }; + + struct UpType + { + ValType high; + ValType low; + }; + + struct DownType + { + ValType high; + ValType low; + }; + + enum IndChoice + { + up_Level, + down_Level + }; + + union IndType switch(IndChoice) + { + case up_Level: UpType up; + case down_Level: DownType down; + }; +}; + |