blob: 49ebde7ff6beda778a1e0aec5e743a9c3268f608 [file] [log] [blame]
// N3648: capture init at non-block scope
// { dg-options "-w" }
// { dg-do run { target c++14 } }
int i = 42;
int j = [x=i]{ return x; }();
int main()
{
if (j != 42) __builtin_abort();
}