1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
nested(int a)2 int nested(int a) {
3 #pragma omp parallel
4 ++a;
5
6 auto F = [&]() { // expected-error {{expected expression}} expected-error {{expected ';' at end of declaration}} expected-warning {{'auto' type specifier is a C++11 extension}}
7 #pragma omp parallel
8 {
9 #pragma omp target
10 ++a;
11 }
12 };
13 F(); // expected-error {{C++ requires a type specifier for all declarations}}
14 return a; // expected-error {{expected unqualified-id}}
15 }// expected-error {{extraneous closing brace ('}')}}
16