blob: 8f41d4e1d3ee9896f8d1c1acf72a9d0b841ba7c8 [file] [log] [blame]
// PR c++/84708
// { dg-do run { target c++11 } }
int main()
{
struct Z
{
int i;
int b = ([&] { return i; }());
Z(int i): i(i) {}
} z (42);
if (z.b != 42)
__builtin_abort ();
}