blob: 07e309fe5b738f1a5bd9bdb9d7aa50b83678a645 (
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
38
39
40
41
42
43
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/IDL_Test
//
// = FILENAME
// enum_in_struct.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.
//
// ============================================================================
// Tests for correct parsing and code generation for
// both named and anonymous enums in a struct.
enum UnNamed
{
UNNAMED_FIRST,
UNNAMED_SECOND,
UNNAMED_THIRD
};
struct HoldsEnum
{
enum Named
{
NAMED_FIRST,
NAMED_SECOND,
NAMED_THIRD
} named_enum;
UnNamed unnamed_enum;
};
|