☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr3698.C
☽
☼
gcc/testsuite/g++.dg/opt/pr3698.C
code
plain
raw
1
// PR c++/3698
2
// { dg-do link }
3
// { dg-options "-O0" }
4
5
struct X {
6
int i;
7
};
8
9
inline const int&
10
OHashKey (const X& x)
11
{
12
return x.i;
13
}
14
15
int
16
main ()
17
{
18
extern const int& OHashKey (const X& x);
19
X x;
20
return OHashKey (x);
21
}