blob: fba9bdfb17031d20c88d7938418875059222a71e (
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
|
// Test NSP (Name space parent)
//
// Test dereferencing parents based on local parent scope.
//
// Derived from data David Engster provided.
namespace nsp {
class rootclass {
public:
int fromroot() {};
};
}
namespace nsp {
class childclass : public rootclass {
public:
int fromchild() {};
};
}
void myfcn_not_in_ns (void) {
nsp::childclass test;
test.// -1-
; // #1# ( "fromchild" "fromroot" )
}
// arch-tag: 2e9c6bf7-1574-440f-ba66-5c8fe034cdec
|