Clang Project

clang_source_code/test/CodeGenCXX/debug-info-template-limit.cpp
1// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple %itanium_abi_triple %s -o - | FileCheck %s
2
3// Check that this pointer type is TC<int>
4// CHECK: ![[LINE:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "TC<int>"{{.*}}, identifier: "_ZTS2TCIiE")
5// CHECK: !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[LINE]]
6
7template<typename T>
8class TC {
9public:
10  TC(const TC &) {}
11  TC() {}
12};
13
14TC<int> tci;
15