Michael Liao | 982cbb6 | 2019-03-06 21:16:27 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s --std=c++11 -triple x86_64-unknown-linux -emit-llvm -o - -debug-info-kind=limited -dwarf-version=2 -debugger-tuning=gdb | FileCheck %s |
| 2 | |
| 3 | #include "Inputs/cuda.h" |
| 4 | |
| 5 | __device__ void f(); |
| 6 | template<void(*F)()> __global__ void t() { F(); } |
| 7 | __host__ void g() { t<f><<<1,1>>>(); } |
| 8 | |
| 9 | // Ensure the value of device-function (as value template parameter) is null. |
| 10 | // CHECK: !DITemplateValueParameter(name: "F", type: !{{[0-9]+}}, value: null) |