diff options
Diffstat (limited to 'tests/IDL_Test/enum_in_struct.idl')
-rw-r--r-- | tests/IDL_Test/enum_in_struct.idl | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/tests/IDL_Test/enum_in_struct.idl b/tests/IDL_Test/enum_in_struct.idl index d3c41ce7781..d71e766fa19 100644 --- a/tests/IDL_Test/enum_in_struct.idl +++ b/tests/IDL_Test/enum_in_struct.idl @@ -1,23 +1,20 @@ -// $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. -// -// ============================================================================ +//============================================================================= +/** + * @file enum_in_struct.idl + * + * $Id$ + * + * 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. + * + * + * @author 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. @@ -31,11 +28,11 @@ enum UnNamed struct HoldsEnum { - enum Named - { - NAMED_FIRST, - NAMED_SECOND, - NAMED_THIRD + enum Named + { + NAMED_FIRST, + NAMED_SECOND, + NAMED_THIRD } named_enum; UnNamed unnamed_enum; @@ -45,22 +42,22 @@ struct HoldsEnum struct decl_heavy_struct { - enum str_en + enum str_en { - a, - b, + a, + b, c } m_en[10]; - struct st + struct st { - long a; + long a; char b; } m_st[10]; - union un switch (long) + union un switch (long) { - case 1: long a; + case 1: long a; case 2: char b; } m_un[10]; }; |