blob: 37708f6c6476024bc7b167a94108fb7d593a8bd4 (
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
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/IDL_Test
//
// = FILENAME
// invalid_scoping.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.
//
// ============================================================================
module A {
typedef long mylong;
module B {
module A { // This is supposed to HIDE outer scope A
typedef short myshort;
};
typedef A::myshort CORRECT;
typedef A::mylong INVALID; // Required to use ::A::mylong
// Recursive search is not allowable above as the module A
// being referenced is NOT the same as the local module A
// that is hiding the outer scoped name, they just happen
// to share the same short name.
};
};
|