m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-90548.C
blobb845dd85c415d46de6cad9c675aa498eb4c7fce0
1 // PR c++/90548
2 // { dg-do compile { target c++14 } }
4 struct S { S (void ()); };
5 S foo([] (auto...) { });
6 S foo2{[] (auto...) {}};
7 S foo3 = {[] (auto...) {}};
9 struct W { W(void (int)); };
10 W bar([](auto...) { });
11 W bar2{[](auto...) { }};
12 W bar3 = {[](auto...) { }};
14 struct T { T(void (int, int)); };
15 T qux([](auto...) { });
16 T qux2{[](auto...) { }};
17 T qux3 = {[](auto...) { }};
19 struct R { R(void (int, int, int, int, int, int, int, int, int, int)); };
20 R baz([](auto...) { });
21 R baz2{[](auto...) { }};
22 R baz3 = {[](auto...) { }};