[TySan] Don't report globals with incomplete types. (#121922)
[llvm-project.git] / clang / test / OpenMP / assume_messages_attr.c
bloba2e61a8cf412f287e701fbd9fb65a10ba4f7a11c
1 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -verify -fopenmp -x c -std=c99 %s
2 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -verify -fopenmp-simd -x c -std=c99 %s
4 [[omp::directive(assume no_openmp)]] // expected-error {{unexpected OpenMP directive '#pragma omp assume'}}
6 void foo(void) {
7 [[omp::directive(assume hold(1==1))]] // expected-warning {{extra tokens at the end of '#pragma omp assume' are ignored}}
8 {}
11 void bar(void) {
12 [[omp::directive(assume absent(target))]]
13 } // expected-error {{expected statement}}
15 void qux(void) {
16 [[omp::directive(assume extra_bits)]] // expected-warning {{extra tokens at the end of '#pragma omp assume' are ignored}}
20 void quux(void) {
21 // This form of spelling for assumption clauses is supported for
22 // "omp assumes" (as a non-standard extension), but not here.
23 [[omp::directive(assume ext_spelled_like_this)]] // expected-warning {{extra tokens at the end of '#pragma omp assume' are ignored}}
27 void dups(void) {
28 [[omp::directive(assume no_openmp no_openmp)]] // expected-error {{directive '#pragma omp assume' cannot contain more than one 'no_openmp' clause}}