aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-fn-template.cpp
blob: bef9fe144028e0c4d8e2d39c95fa81318a9d9741 (plain) (blame)
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: XF<int>
//CHECK: DW_TAG_template_type_parameter
template int fx(XF<int>);