Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / DynAny_Test / da_tests.idl
blob41f0458138630db920676c188e7fd7dc732a81a2
1 /* -*- C++ -*- */
2 #include <orb.idl>
4 module DynAnyTests
6 struct enclosed_struct
8 float f;
9 short s;
12 struct test_struct
14 char c;
15 CORBA::ShortSeq ss;
16 enclosed_struct es;
19 typedef sequence<string<8> > test_seq;
20 typedef sequence<short> SeqShort;
21 typedef sequence<boolean> SeqBoolean;
23 const unsigned long DIM = 2;
24 typedef long test_array [DIM];
26 enum test_enum
28 TE_ZEROTH,
29 TE_FIRST,
30 TE_SECOND,
31 TE_THIRD,
32 TE_FOURTH
35 typedef test_enum Enumerated_a;
36 typedef test_enum Enumerated_b;
37 typedef test_enum Enumerated_c;
39 struct StructTypedefEnum {
40 Enumerated_a field_1;
41 Enumerated_b field_2;
42 Enumerated_c field_3;
45 union test_union switch (test_enum)
47 case TE_SECOND: CORBA::TypeCode tc;
48 case TE_FOURTH: test_enum te;
49 default: short s;
50 case TE_THIRD: string str;
51 case TE_ZEROTH: octet o;
54 typedef test_struct test_struct_alias;
55 typedef test_union test_union_alias;
57 union test_implicit_def switch (boolean) {
58 case TRUE :
59 test_enum tenum;
60 } ;
62 union test_union_no_active_member switch (long) {
63 case 1: long field_long;
64 case 2: string field_string;
67 struct test_struct_with_long_double
69 long double field_longdouble;