summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/ValueBox/vb_union.idl
blob: 59540ea4f6f31b118361a200f3db433424fa5209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//=========================================================================
// Valuebox of unions
//=========================================================================

union Fixed_Union1 switch(long)
{
 case 1: long m1;
 case 2: short m2;
};

union Variable_Union1 switch(long)
{
 case 1: long m1;
 case 2: string m2;
};


valuetype VBfixed_union1 Fixed_Union1;

valuetype VBvariable_union1 Variable_Union1;