brintos

brintos / llvm-project-archived public Read only

0
0
Text · 421 B · a16f950 Raw
20 lines · cpp
1// RUN: %clang_cc1 -fopenmp -ast-print %s | FileCheck %s --check-prefix=PRINT2// RUN: %clang_cc1 -ast-print %s | FileCheck %s --check-prefix=PRINT3 4// Checks whether the `if` body looks same with and without OpenMP enabled5 6void foo() {7    return;8}9 10int main() {11    int x = 3;12    if (x % 2 == 0)13        #pragma omp nothing14    foo();15 16    return 0;17// PRINT: if (x % 2 == 0)18// PRINT:    foo();19// PRINT: return 0;20}