1d6254e1bSShilei Tian // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-unknown %s 2d6254e1bSShilei Tian // RUN: %clang_cc1 -verify -fopenmp-simd -triple x86_64-unknown-unknown %s 3d6254e1bSShilei Tian // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-unknown -fopenmp-targets=nvptx64 %s 4d6254e1bSShilei Tian foo()5d6254e1bSShilei Tianvoid foo() { 6d6254e1bSShilei Tian } 7d6254e1bSShilei Tian bar()8d6254e1bSShilei Tianvoid bar() { 9d6254e1bSShilei Tian #pragma omp target ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp target'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target teams'}} 10d6254e1bSShilei Tian foo(); 11d6254e1bSShilei Tian 12d6254e1bSShilei Tian #pragma omp target teams distribute ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp target teams distribute'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target teams'}} 13d6254e1bSShilei Tian for (int i = 0; i < 10; ++i) {} 14d6254e1bSShilei Tian 15d6254e1bSShilei Tian #pragma omp target teams distribute parallel for ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp target teams distribute parallel for'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target teams'}} 16d6254e1bSShilei Tian for (int i = 0; i < 10; ++i) {} 17d6254e1bSShilei Tian 18d6254e1bSShilei Tian #pragma omp target 19d6254e1bSShilei Tian #pragma omp teams ompx_bare // expected-error {{unexpected OpenMP clause 'ompx_bare' in directive '#pragma omp teams'}} expected-note {{OpenMP extension clause 'ompx_bare' only allowed with '#pragma omp target teams'}} 20*0f5eef1fSShilei Tian foo(); 21*0f5eef1fSShilei Tian 22*0f5eef1fSShilei Tian #pragma omp target teams ompx_bare // expected-error {{'ompx_bare' clauses requires explicit grid size via 'num_teams' and 'thread_limit' clauses}} 23d6254e1bSShilei Tian foo(); 24d6254e1bSShilei Tian } 25