blob: 74d9b85de221ab75b6d569e101eb14d8634c834a (
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
|
// $Id$
/**
* @file lookup_test.idl
* @authors Boris Kolpackov <boris@dre.vanderbilt.edu>
* Jeff Parsons <j.parsons@vanderbilt.edu>
*
* Tests IDL compiler lookup when local names are used
* to reference declarations in supported interfaces,
* base valuetypes, base components, and base homes.
*/
#ifndef IDL3_LOOKUP_TEST_IDL
#define IDL3_LOOKUP_TEST_IDL
#include <Components.idl>
module M
{
interface IB
{
exception Ex {};
typedef long Foo;
};
interface I : IB
{
void f (in Foo bar) raises (Ex);
};
valuetype VB
{
typedef long Bar;
};
valuetype V : VB supports IB
{
void f (in Bar foo) raises (Ex);
};
valuetype EB
{
typedef long Bar;
};
valuetype E : EB supports IB
{
void f (in Bar foo) raises (Ex);
};
interface T
{
typedef long Bar;
};
component CB supports T
{
};
component C : CB
{
attribute Bar baz;
};
home HB supports IB manages CB
{
typedef long Bar;
};
home H : HB manages C
{
void f (in Bar b) raises (Ex);
};
};
#endif /* IDL3_LOOKUP_TEST_IDL */
|