xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-template-limit.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // Check that this pointer type is TC<int>
4*f4a2713aSLionel Sambuc // CHECK: ![[LINE:[0-9]+]] = {{.*}}"TC<int>", {{.*}} metadata !"_ZTS2TCIiE"} ; [ DW_TAG_class_type ]
5*f4a2713aSLionel Sambuc // CHECK: metadata !"_ZTS2TCIiE"} ; [ DW_TAG_pointer_type ]{{.*}}[from _ZTS2TCIiE]
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc template<typename T>
8*f4a2713aSLionel Sambuc class TC {
9*f4a2713aSLionel Sambuc public:
10*f4a2713aSLionel Sambuc   TC(const TC &) {}
11*f4a2713aSLionel Sambuc   TC() {}
12*f4a2713aSLionel Sambuc };
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc TC<int> tci;
15