[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / OpenMP / nothing_messages.cpp
blob0e27e3c27076a7b0588625f83e16d0a40caa72f7
1 // RUN: %clang_cc1 -verify=expected -fopenmp -ferror-limit 100 %s -Wuninitialized
3 int mixed() {
4 int x = 0;
5 int d = 4;
7 #pragma omp nothing
8 x=d;
10 if(!x) {
11 #pragma omp nothing
12 x=d;
15 if(!x)
16 #pragma omp nothing
17 x=d;
19 // expected-warning@+2 {{extra tokens at the end of '#pragma omp nothing' are ignored}}
20 if(!x) {
21 #pragma omp nothing seq_cst
22 x=d;
25 return 0;