summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/idl_specs/union.idl
blob: 587dae3a9c9831b49f5f855c8530825c7f7852e8 (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
// $Id$

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);
};