Debian Codegraph @

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

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());