blob: 34a21c6c1da99262d6a4af92509454ff1315ee86 [file] [log] [blame]
Justin Holewinski2c585b92012-05-24 17:43:12 +00001// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
Justin Holewinski818eafb2011-10-05 17:58:44 +00002
3void device_function() {
4}
5// CHECK: define ptx_device void @device_function()
6
7__kernel void kernel_function() {
8 device_function();
9}
10// CHECK: define ptx_kernel void @kernel_function()
11// CHECK: call ptx_device void @device_function()
12