[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCUDA / openmp-static-func.cu
blobf1f0c488749e12ad451615587164ff15fb9df8ac
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \
2 // RUN:            -verify -fopenmp %s
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \
4 // RUN:            -verify -fopenmp -x hip %s
5 // expected-no-diagnostics
7 // Tests there is no assertion in Sema::markKnownEmitted when fopenmp is used
8 // with CUDA/HIP host compilation.
10 static void f() {}
12 static void g() { f(); }
14 static void h() { g(); }