Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
());