1 // { dg-require-effective-target c++11 }
5 int arr[] = {1, 2, 3, 4, 5};
6 for (const auto v: arr) {
7 _forbegin; // { dg-bogus "suggested alternative" }
8 // { dg-error "'_forbegin' was not declared in this scope" "" { target *-*-*} .-1 }
14 int arr[] = {1, 2, 3, 4, 5};
16 for (const auto v: arr) {
18 __for_begin = __for_end; // { dg-error "was not declared in this scope" }