llvm-project
14 строк · 434.0 Байт
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
10static void f() {}
11
12static void g() { f(); }
13
14static void h() { g(); }
15