]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/CodeGenOpenCL/ptx-calls.cl
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / CodeGenOpenCL / ptx-calls.cl
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 %s -triple nvptx-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
2
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