blob: bc528c633969a1f707b24e11efc1acb4b07bfc5d (
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
|
//=============================================================================
/**
* @file included.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.
*/
//=============================================================================
#ifndef IDL_TEST_INCLUDED_IDL
#define IDL_TEST_INCLUDED_IDL
// Included in IDL file 'including.idl'.
module Aok
{
typedef sequence<double> Seq1Type;
typedef long Me;
};
enum Agog
{
Agog1,
Agog2,
Agog3
};
// This valuetype is used in a sequence in the including file,
// and tests that Value_VarOut_T.h is included early enough.
module VT_Def
{
valuetype VT {};
};
// A valuetype in valuetype.idl inherits from this one.
// In the original bug, the name for this valuetype's
// anonymous sequence member was not created in the derived
// valuetype's AST, so when the arglist for the derived
// valuetype's constructor w/arglist was generated, the member
// below was named 'sequence', which of course didn't compile.
valuetype IncludedBase
{
public sequence<long> DeprecatedMember;
};
// References to MyStructA in including.idl get the
// forward declaration from lookup, and we were
// getting empty typename generation in various places,
// before overriding the visit methods for forward
// declared structs and unions in the relevant visitors.
module A
{
struct MyStructA;
typedef sequence<MyStructA> MySeqA;
struct MyStructA
{
string str;
MySeqA recursive_member;
};
};
#endif /* IDL_TEST_INCLUDED_IDL */
|