openmp-static-func.cu 434 B

1234567891011121314
  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
  6. // Tests there is no assertion in Sema::markKnownEmitted when fopenmp is used
  7. // with CUDA/HIP host compilation.
  8. static void f() {}
  9. static void g() { f(); }
  10. static void h() { g(); }