Home | History | Annotate | Download | only in OpenMP
      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   L1:
      7     foo();
      8   #pragma omp target data
      9   {
     10     foo();
     11     goto L1; // expected-error {{use of undeclared label 'L1'}}
     12   }
     13   goto L2; // expected-error {{use of undeclared label 'L2'}}
     14   #pragma omp target data
     15   L2:
     16   foo();
     17 
     18   #pragma omp target data(i) // expected-warning {{extra tokens at the end of '#pragma omp target data' are ignored}}
     19   {
     20     foo();
     21   }
     22   #pragma omp target unknown // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}}
     23   {
     24     foo();
     25   }
     26   return 0;
     27 }
     28