// $Id: old_union.idl 79418 2007-08-20 15:58:51Z parsons $

// ============================================================================
//
// = LIBRARY
//    TAO/tests/IDL_Test
//
// = FILENAME
//    old_union.idl
//
// = DESCRIPTION
//    Tests of union IDL constructs
//
// = AUTHORS
//    Andy Gokhale <gokhale@dre.vanderbilt.edu>
//
// ============================================================================

module OldUnion
{
  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);
  };
};

