Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr3698.C

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 }