[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / OpenMP / nothing_ast_print.cpp
bloba16f95044b60d699985f96c8b164033a5a15ee0e
1 // RUN: %clang_cc1 -fopenmp -ast-print %s | FileCheck %s --check-prefix=PRINT
2 // RUN: %clang_cc1 -ast-print %s | FileCheck %s --check-prefix=PRINT
4 // Checks whether the `if` body looks same with and without OpenMP enabled
6 void foo() {
7 return;
10 int main() {
11 int x = 3;
12 if (x % 2 == 0)
13 #pragma omp nothing
14 foo();
16 return 0;
17 // PRINT: if (x % 2 == 0)
18 // PRINT: foo();
19 // PRINT: return 0;