1 // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s
2 
3 void foo() { }
4 
5 int main(int argc, char **argv) {
6   int a;
7   #pragma omp target data // expected-error {{expected at least one map clause for '#pragma omp target data'}}
8   {}
9   L1:
10     foo();
11   #pragma omp target data map(a)
12   {
13     foo();
14     goto L1; // expected-error {{use of undeclared label 'L1'}}
15   }
16   goto L2; // expected-error {{use of undeclared label 'L2'}}
17   #pragma omp target data map(a)
18   L2:
19   foo();
20 
21   #pragma omp target data map(a)(i) // expected-warning {{extra tokens at the end of '#pragma omp target data' are ignored}}
22   {
23     foo();
24   }
25   #pragma omp target unknown // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}}
26   {
27     foo();
28   }
29   return 0;
30 }
31