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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary7.C
blob
8b91fe1324d119b1fd94c1746eb8951dc428b3fa
1
// PRMS ID: 7304
2
3
struct V {
4
int n;
5
V() : n(0) { }
6
V(int x) : n(x) { }
7
};
8
9
V baz(const V &x)
10
{
11
return x;
12
}
13
14
int bar(V v1, V v2, V v3)
15
{
16
return v1.n;
17
}
18
19
struct A {
20
A(): n(7) { }
21
int foo();
22
V n;
23
};
24
25
int A::foo()
26
{
27
V v1, v2;
28
return bar(n, baz(v1), v2);
29
}
30
31
int main()
32
{
33
A a;
34
return (a.foo() != 7);
35
}