c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-ice8.C
bloba39ce44115df56b3154f2e7852558645f1f80689
1 // PR c++/82230
2 // { dg-do compile { target c++14 } }
4 template <class>
5   struct c
6   {
7     template <class>
8     void f()
9     {
10       [](auto) { auto x = [] {}; }(0);
11     }
13 int main()
15   c<int>{}.f<int>();