Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-temp1.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A { int i; };
4 constexpr A f2 (const A& a) { return a; }
5 constexpr int f1 (const A &a) { return f2(a).i; }
6 A g(const A &a)
7 {
8 return { f1(a) };
9 }