diff options
author | smcqueen <smcqueen@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-06-09 14:51:10 +0000 |
---|---|---|
committer | smcqueen <smcqueen@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-06-09 14:51:10 +0000 |
commit | b3184b3d84f499bb2ca6bcdaeec1995a522bb3fd (patch) | |
tree | 0994d0cccb7289baa315253273bb260a091fe57e /TAO/tests/Bug_2144_Regression | |
parent | cc1d6999746427244bd6d13a309291df13e9e6aa (diff) | |
download | ATCD-b3184b3d84f499bb2ca6bcdaeec1995a522bb3fd.tar.gz |
ChangeLogTag: Thu Jun 9 15:33:52 2005 Simon McQueen <sm@prismtech.com>
Diffstat (limited to 'TAO/tests/Bug_2144_Regression')
-rwxr-xr-x | TAO/tests/Bug_2144_Regression/Bug_2144_Regression.mpc | 10 | ||||
-rwxr-xr-x | TAO/tests/Bug_2144_Regression/README | 4 | ||||
-rwxr-xr-x | TAO/tests/Bug_2144_Regression/test.cpp | 10 | ||||
-rwxr-xr-x | TAO/tests/Bug_2144_Regression/test.idl | 17 |
4 files changed, 41 insertions, 0 deletions
diff --git a/TAO/tests/Bug_2144_Regression/Bug_2144_Regression.mpc b/TAO/tests/Bug_2144_Regression/Bug_2144_Regression.mpc new file mode 100755 index 00000000000..72627b415da --- /dev/null +++ b/TAO/tests/Bug_2144_Regression/Bug_2144_Regression.mpc @@ -0,0 +1,10 @@ +// -*- MPC -*- +// $Id$ + +project (*Client) : taoclient { + exename = test + Source_Files { + testC.cpp + test.cpp + } +} diff --git a/TAO/tests/Bug_2144_Regression/README b/TAO/tests/Bug_2144_Regression/README new file mode 100755 index 00000000000..78e177a24c7 --- /dev/null +++ b/TAO/tests/Bug_2144_Regression/README @@ -0,0 +1,4 @@ +// $Id$ + +There is nothing to run for this test. It passes if the generated code +compiles. See bugzilla #2144. diff --git a/TAO/tests/Bug_2144_Regression/test.cpp b/TAO/tests/Bug_2144_Regression/test.cpp new file mode 100755 index 00000000000..c7b795b0d04 --- /dev/null +++ b/TAO/tests/Bug_2144_Regression/test.cpp @@ -0,0 +1,10 @@ +// $Id$ + +#include "testC.h" + +int main (int argc, char* argv[]) +{ + ACE_UNUSED_ARG (argc); + ACE_UNUSED_ARG (argv); + return 0; +} diff --git a/TAO/tests/Bug_2144_Regression/test.idl b/TAO/tests/Bug_2144_Regression/test.idl new file mode 100755 index 00000000000..28335e7e932 --- /dev/null +++ b/TAO/tests/Bug_2144_Regression/test.idl @@ -0,0 +1,17 @@ +// +// $Id$ +// +module Test +{ + enum Selector { STRUCTTYPE, VALTYPE }; + + struct Foo { long l; } ; + + valuetype Bar { public short s; } ; + + union MyUnion switch (Selector) + { + case STRUCTTYPE: Foo fooData; + case VALTYPE: Bar barData; + }; +}; |