Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-empty15.C
blob: 97863d4e1a78d54d4c8cdc16ab5040570e873dd5 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
empty1
{
};
constexpr
empty1 foo1
()
{
return
{};
}
struct
empty2
{
};
constexpr
empty2 foo2
(
empty1
)
{
return
{};
}
constexpr
empty2 a
=
foo2
(
foo1
());