1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
2 // RUN: -fopenmp -emit-llvm -o - -x hip %s | FileCheck %s
4 #include "Inputs/cuda.h"
7 __device__ void foo(int) {}
9 // Check foo resolves to the host function.
10 // CHECK-LABEL: define {{.*}}@_Z5test1v
11 // CHECK: call void @_Z3food(double noundef 1.000000e+00)
14 for (int i = 0; i < 100; i++)
18 // Check foo resolves to the host function.
19 // CHECK-LABEL: define {{.*}}@_Z5test2v
20 // CHECK: call void @_Z3food(double noundef 1.000000e+00)
24 for (int i = 0; i < 100; i++)