blob: b5054c229610c5639ceaef593fec655fbda9c5e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
//=============================================================================
/**
* @file old_union2.idl
*
* $Id$
*
* Further tests of union IDL constructs
*
*
* @author Andy Gokhale <gokhale@dre.vanderbilt.edu>
*/
//=============================================================================
module OldUnion2
{
enum FooDisc
{
FOO1,
FOO2
};
union Foo switch (FooDisc)
{
case FOO1: long x;
case FOO2: string y;
};
struct Bar
{
enum BarDisc
{
BAR1,
BAR2
} kind;
union Foo switch (BarDisc)
{
case BAR1: long x;
case BAR2: long y;
} addr;
};
};
|