annotate clang/test/CodeGenCUDA/debug-info-template.cu @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 #include "Inputs/cuda.h"
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 __device__ void f();
anatofuz
parents:
diff changeset
6 template<void(*F)()> __global__ void t() { F(); }
anatofuz
parents:
diff changeset
7 __host__ void g() { t<f><<<1,1>>>(); }
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // Ensure the value of device-function (as value template parameter) is null.
anatofuz
parents:
diff changeset
10 // CHECK: !DITemplateValueParameter(name: "F", type: !{{[0-9]+}}, value: null)