Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / nothing_messages.cpp
blobcd6d0defe492fb43058368bfd3e2a92fc86a6963
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 // expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}}
16 if(!x)
17 #pragma omp nothing
18 x=d;
20 // expected-warning@+2 {{extra tokens at the end of '#pragma omp nothing' are ignored}}
21 if(!x) {
22 #pragma omp nothing seq_cst
23 x=d;
26 return 0;