Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/lambda/lambda-errloc.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Test that error messages about creating the closure object refer to |
2 // the lambda-introducer. | |
3 // { dg-do compile { target c++11 } } | |
4 | |
5 struct A | |
6 { | |
7 A(); | |
8 A(const A& a) = delete; // { dg-message "declared" } | |
9 }; | |
10 | |
11 int main() | |
12 { | |
13 A ar[4][3]; | |
14 [ar] { }; // { dg-error "3:" } | |
15 | |
16 A a; | |
17 [a] { }; // { dg-error "3:" } | |
18 } |