blob: ecca8519af639f0566ccdf116e5ce85346b1f6ba [file] [log] [blame]
Peter Collingbourned51e43a2011-10-06 18:29:46 +00001// RUN: %clang_cc1 %s -triple ptx32-unknown-unknown -fcuda-is-device -emit-llvm -o - | FileCheck %s
Peter Collingbourne744d90b2011-10-06 16:49:54 +00002
3#include "../SemaCUDA/cuda.h"
4
5// CHECK: define ptx_device{{.*}}device_function
6__device__ void device_function() {}
7
8// CHECK: define ptx_kernel{{.*}}global_function
9__global__ void global_function() {
10 // CHECK: call ptx_device{{.*}}device_function
11 device_function();
12}