repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
lookup6.C
blob
a66302b62c57cf01279ca78d55a6d3ccb27098c0
1
// { dg-do run }
2
int f(int i)
3
{
4
struct C {
5
int i;
6
C () : i(1) {}
7
int f() {
8
struct D {
9
int i;
10
D () : i(2) {}
11
int g() { return i; }
12
} d;
13
14
return d.g();
15
}
16
} c;
17
18
return c.f();
19
}
20
21
22
int main()
23
{
24
if (f(0) != 2)
25
return 1;
26
}