merge the formfield patch from ooo-build
[ooovba.git] / idlc / test / union.idl
blob8e9b5c5dedf871abfd4a50085260a561aefa32d5
1 module idlc
3 module test
6 union UnionTest switch (long) {
7 case 1: long x;
8 case 2: byte y;
9 case 3: string z;
10 case 4:
11 case 5: short w;
12 case 6: long array[ 10 ][ 20 ];
13 case 7: sequence<long> seq;
14 default: any a;
17 typedef enum E {
20 } EAlias;
22 // Union with no default label
23 union U2 switch(EAlias) {
24 case E::A : long x;
25 case E::B : short y;
28 union U3 switch(char) {
29 case 2 : long x;
30 case 4 : short y;