c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr82410.C
blob185f6447d0f7d651074fddda38de9c067de120fa
1 // PR c++/82410
2 // { dg-do compile { target c++14 } }
4 int
5 main ()
7   struct A {};
8   struct S
9   {
10     int & p;
11     int x = p;
12     operator A () { return {}; }
13   };
14   int l;
15   [] (A) {} (S{l});