PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / pr59477.C
blob788c751e51cf7c529fd1cc40df1c9fc8645937fb
1 /* { dg-do compile } */
2 /* { dg-options "-O" } */
4 struct A
6   unsigned *a, b;
7   A (unsigned x) : a (), b (x) {}
8 };
10 struct B
12   B (int);
13   B (const B &) {}
16 B bar (B, B, A);
17 int v;
19 void
20 foo ()
22   B c = 0;
23   bar (c, c, A (1ULL << v));