1*67e74705SXin Li // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s 2*67e74705SXin Li foo()3*67e74705SXin Livoid foo() { 4*67e74705SXin Li } 5*67e74705SXin Li main(int argc,char ** argv)6*67e74705SXin Liint main(int argc, char **argv) { 7*67e74705SXin Li #pragma omp target nowait( // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}} 8*67e74705SXin Li foo(); 9*67e74705SXin Li #pragma omp target nowait (argc)) // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}} 10*67e74705SXin Li foo(); 11*67e74705SXin Li #pragma omp target nowait device (-10u) 12*67e74705SXin Li foo(); 13*67e74705SXin Li #pragma omp target nowait (3.14) device (-10u) // expected-warning {{extra tokens at the end of '#pragma omp target' are ignored}} 14*67e74705SXin Li foo(); 15*67e74705SXin Li 16*67e74705SXin Li return 0; 17*67e74705SXin Li } 18