You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
545 B

// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
int nested(int a) {
#pragma omp parallel
++a;
auto F = [&]() { // expected-error {{expected expression}} expected-error {{expected ';' at end of declaration}} expected-warning {{'auto' type specifier is a C++11 extension}}
#pragma omp parallel
{
#pragma omp target
++a;
}
};
F(); // expected-error {{C++ requires a type specifier for all declarations}}
return a; // expected-error {{expected unqualified-id}}
}// expected-error {{extraneous closing brace ('}')}}