15 lines · plain
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \2// RUN: -verify -fopenmp %s3// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \4// RUN: -verify -fopenmp -x hip %s5// expected-no-diagnostics6 7// Tests there is no assertion in Sema::markKnownEmitted when fopenmp is used8// with CUDA/HIP host compilation.9 10static void f() {}11 12static void g() { f(); }13 14static void h() { g(); }15