brintos

brintos / llvm-project-archived public Read only

0
0
Text · 532 B · f73a48f Raw
23 lines · plain
1// RUN: %clang_cc1 -isystem %S/Inputs  -fsyntax-only %s2// RUN: %clang_cc1 -isystem %S/Inputs -fcuda-is-device  -fsyntax-only %s3// RUN: %clang_cc1 -isystem %S/Inputs -foffload-implicit-host-device-templates -fsyntax-only %s4// RUN: %clang_cc1 -isystem %S/Inputs -foffload-implicit-host-device-templates -fcuda-is-device  -fsyntax-only %s5 6#include <cuda.h>7 8template<typename T>9void tempf(T x) {10}11 12template<typename T>13__device__ void tempf(T x) {14}15 16void host_fun() {17  tempf(1);18}19 20__device__ void device_fun() {21  tempf(1);22}23