blob: 519d5489f6eea9ea5f5ec2ff6de8a19f7a466b9f (
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
76
77
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/IDL_Test
//
// = FILENAME
// fwd.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.
//
// ============================================================================
// This file, along with its companion full.idl, test the
// handling of forward interface declarations that are
// not defined in the same IDL file. The two files have
// mutually dependent interfaces. It is no longer necessary
// for such ILD files to include each other, as long as
// they are part of the same build.
module scope_test
{
interface i_scope_test;
};
module mod2
{
struct scope_struct
{
scope_test::i_scope_test ss_member;
};
interface fwd;
exception exp
{
fwd fwd_mem;
};
typedef fwd td_fwd;
interface full
{
fwd op (in fwd inarg,
inout fwd inoutarg,
out fwd outarg);
};
typedef sequence<full, 5> full_seq2;
interface fwd;
};
// Tests a bug where code generation for an interface
// which was forward declared, then fully defined with
// both concrete and abstract parents caused the IDL
// compiler to crash.
module fwd_mixed_intf
{
interface mixed_parents;
interface concrete_parent {};
abstract interface abstract_parent {};
interface mixed_abs_first : abstract_parent, concrete_parent {};
interface mixed_conc_first : concrete_parent, abstract_parent {};
};
|