brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · 0e27e3c Raw
27 lines · cpp
1// RUN: %clang_cc1 -verify=expected -fopenmp -ferror-limit 100 %s -Wuninitialized2 3int mixed() {4  int x = 0;5  int d = 4;6 7#pragma omp nothing8  x=d;9 10  if(!x) {11#pragma omp nothing12    x=d;13  }14 15  if(!x)16#pragma omp nothing17    x=d;18 19// expected-warning@+2 {{extra tokens at the end of '#pragma omp nothing' are ignored}}20  if(!x) {21#pragma omp nothing seq_cst22    x=d;23  }24 25  return 0;26}27