summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-fn-template.cpp
blob: 2aed4bef71c8ed26e8680b18c24850203b5dc014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s

template<typename T>
struct XF {
  T member;
};

template<typename T>
T fx(XF<T> xi) {
  return xi.member;
}

// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "XF<int>"
// CHECK: !DITemplateTypeParameter(name: "T"
template int fx(XF<int>);