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