summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/idl_specs/union.idl
blob: 7b6e32b995743bf5172e2ea30c75f3f9f0eaefbe (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
struct Bar {
    long	b1;
    char	b2;
};

union Foo switch (long) {
case 1: long x;
case 2: Bar y;
default: char z;
};


union Foo2 switch (char) {
  case 'a': long x;
  case 'b': Foo y;
};

interface a {
	struct astruct {
		Foo2	a1;
		Foo	a2;
		Bar	a3;
	};
	Foo2	opA(in astruct b);
};