OSDN Git Service

PR c++/34774
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / opt / inline5.C
1 // PR c++/12519
2
3 // { dg-do compile }
4 // { dg-options "-O" }
5
6 struct A
7 {
8     ~A();
9 };
10
11 inline const A foo()
12 {
13     A a;
14     return a;
15 }
16
17 A bar()
18 {
19     return foo();
20 }