☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-empty15.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-empty15.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
struct empty1 { };
4
constexpr empty1 foo1() { return {}; }
5
6
struct empty2 { };
7
constexpr empty2 foo2(empty1) { return {}; }
8
9
constexpr empty2 a = foo2(foo1());