blob: 70f466db3a35d27d2f0ddd4a02336a681e78353d (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/IDL_Test
//
// = FILENAME
// array.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.
//
// ============================================================================
// Multidimensional arrays - constant vigilance.
typedef short TwoDArray[64][63];
typedef short ThreeDArray[64][63][62];
// This problem is a combination of two others
// that have long been fixed, but you never know...
typedef long inside_array[5];
struct wrap
{
inside_array member;
};
typedef wrap outside_array[10];
// Once a problem with expressions in the brackets,
// as well as the typedef'd/anonymous thing.
interface tdef
{
const short byteslen = 12;
typedef octet Bytes[byteslen + 1];
struct bytes_or_longs
{
Bytes the_bytes; // typedef'd
long Longs[byteslen]; // anonymous
};
};
// To test that all the octet arrays build and link as
// unique types.
module ABCModule
{
struct RmtPhysicalInfo
{
octet rmtNodeId[22];
octet rmtDetails[22];
};
struct bbbBubBubBubBaby
{
octet rmtNodeId[22];
octet rmtDetails[22];
};
};
typedef octet oa1[22];
typedef octet oa2[22];
|