debug-info-template.cpp revision 0ce34c6ba0aa79708a62179c0fdf96891b62b5dc
1// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
2
3//CHECK: TC<int>
4//CHECK: DW_TAG_template_type_parameter
5
6template<typename T>
7class TC {
8public:
9  TC(const TC &) {}
10  TC() {}
11};
12
13TC<int> tci;
14
15//CHECK: TU<2>
16//CHECK: DW_TAG_template_value_parameter
17template<unsigned >
18class TU {
19  int b;
20};
21
22TU<2> u2;
23