blob: a38177bcea855ecf4602cbcf26284a892fe090b2 (
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
44
45
46
47
48
|
/* -*- C++ -*- */
//
// $Id$
//
module DynAnyTests
{
struct enclosed_struct {
long l;
string str;
};
typedef short foo;
struct test_struct {
foo f;
double d;
// enclosed_struct es;
};
typedef sequence<enclosed_struct> test_seq;
const unsigned long DIM = 3;
typedef long test_array [DIM];
// typedef long twin_array [DIM];
enum test_enum {
ZEROTH,
FIRST,
SECOND,
THIRD
};
union test_union switch (test_enum)
{
case SECOND:
TypeCode tc;
case FIRST:
short s;
case THIRD:
string str;
case ZEROTH:
octet o;
// default:
// char c;
};
};
|