summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/generic_object.idl
blob: c1f27021b9720ad3117dd202d97e44314c253e92 (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
29
30
31
32
33
34
35
36
37
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/tests/IDL_Test
//
// = FILENAME
//    generic_object.idl
//
// = DESCRIPTION
//    This file contains examples of IDL code that has 
//    caused problems in the past for the TAO IDL
//    compiler. This test is to make sure the problems
//    stay fixed.
//
// = AUTHORS
//    Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
//
// ============================================================================

// The IDL compiler deals with these in a completely
// different way that it deals with a derived object,
// i.e., an interface.

enum ObjectType 
  {
    THIS, 
    THAT
  };

union Selecter switch (ObjectType) 
  {
    case THIS: Object this_object;
    case THAT: Object that_object;
  };