Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if-lambda1.C
blob: 64c4cd27fe61f93d21198a02e1cc74855ef008ec [
file
] [
log
] [
blame
]
// PR c++/93442
// { dg-do compile { target c++17 } }
struct
bar
{
int
foo
(){
return
0
;}
};
int
foobar
()
{
if
constexpr
(
true
)
{
return
0
;
}
else
{
return
[](){
return
bar
{};
}().
foo
();
}
}