PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto34.C
blob3682d60bf4bc465c76f9a37bd4016b6c4ebbf115
1 // PR c++/51421
2 // { dg-do compile { target c++11 } }
4 int foo1(int);
6 void bar1()
8   auto i = foo1(i);   // { dg-error "before deduction" }
11 struct A {};
13 A foo2(A);
15 void bar2()
17   auto a = foo2(a);   // { dg-error "before deduction" }