summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCUDA/openmp-static-func.cu
blob: f1f0c488749e12ad451615587164ff15fb9df8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \
// RUN:            -verify -fopenmp %s
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only \
// RUN:            -verify -fopenmp -x hip %s
// expected-no-diagnostics

// Tests there is no assertion in Sema::markKnownEmitted when fopenmp is used
// with CUDA/HIP host compilation.

static void f() {}

static void g() { f(); }

static void h() { g(); }
OpenPOWER on IntegriCloud