// union2.idl,v 1.2 1998/05/13 14:27:33 levine Exp

enum FooDisc {
	FOO1,
	FOO2
};
union Foo switch (FooDisc) {
case FOO1: long x;
case FOO2: string y;
default: char z;
};


struct Bar {
    enum BarDisc {
	BAR1,
	BAR2
    } kind;
    union Foo switch (BarDisc) {
      case BAR1: long x;
      case BAR2: long y;
    } addr;
};
