blob: 07648e4015079b42601fdd496b73ba4fb3ae5802 [file] [log] [blame]
Justin Holewinski2c585b92012-05-24 17:43:12 +00001// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -o - | FileCheck %s
Justin Holewinski818eafb2011-10-05 17:58:44 +00002
3void device_function() {
4}
Justin Holewinskidca8f332013-03-30 14:38:24 +00005// CHECK: define void @device_function()
Justin Holewinski818eafb2011-10-05 17:58:44 +00006
7__kernel void kernel_function() {
8}
Justin Holewinskidca8f332013-03-30 14:38:24 +00009// CHECK: define void @kernel_function()
Justin Holewinski818eafb2011-10-05 17:58:44 +000010
Justin Holewinskidca8f332013-03-30 14:38:24 +000011// CHECK: !{{[0-9]+}} = metadata !{void ()* @kernel_function, metadata !"kernel", i32 1}