☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-temp1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-temp1.C
code
plain
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
}