Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-errloc.C
blobf4766691eecfb2ee719e18f5360a55d97b94cf08
1 // Test that error messages about creating the closure object refer to
2 // the lambda-introducer.
3 // { dg-options -std=c++0x }
5 struct A
7   A();
8   A(const A& a) = delete;       // { dg-error "declared" }
9 };
11 int main()
13   A ar[4][3];
14   [ar] { };                     // { dg-error "3:" }
16   A a;
17   [a] { };                      // { dg-error "3:" }