// RUN: rm -rf %t // RUN: mkdir %t // RUN: %clang -fblocks %s -o %t/a.out -g -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params // RUN: llvm-dwarfdump %t/a.out --verify template struct t1 { }; template struct t2; struct udt { }; namespace ns { struct udt { }; namespace inner { template struct ttp { }; struct udt { }; } template class T> void ttp_user() { } enum Enumeration { Enumerator1, Enumerator2, Enumerator3 = 1 }; enum class EnumerationClass { Enumerator1, Enumerator2, Enumerator3 = 1 }; enum { AnonEnum1, AnonEnum2, AnonEnum3 = 1 }; enum EnumerationSmall : unsigned char { kNeg = 0xff }; } template void f1() { t1 v1; t2 *v2; } template void f2() { } template void f3() { } template void f4() { } template struct t3 { }; extern template class t3; template class t3; struct outer_class { struct inner_class { }; }; int i = 3; template struct t4 { }; namespace { struct t5 { }; } template void f5() { } template void f6() { } struct t6 { template void operator<<(int) { } template void operator<(int) { } template void operator<=(int) { } template operator t1*() { return nullptr; } }; template class T> void f7() { } template class T, typename T2> void f8() { } template struct t7; using t7i = t7; template struct __attribute__((__preferred_name__(t7i))) t7 { }; struct t8 { void mem(); }; namespace ns { inline namespace inl { template struct t9 { }; } } template void (*f9())() { return nullptr; } struct t10 { template t10() { } }; int main() { struct { } A; auto L = []{}; f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1>(); f1(); f1(); f1(); f1(); f1(); // f1(); f1(); f1(); f1(); f2(); f3(); f3(); f3(); f3(); f3(); f3(); // t4<3> v2; f3(); f3(); f3(); f3(); f3(); f3(); f3(); f3(); f3(); f3<__int128, ((__int128)9223372036854775807) * 2>(); f4(); f1>(); f1>>(); f1(); t3 v1; f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f5>(); f5<>(); f6>(); f1<>(); f1(); f1*>(); f1(); t6 v6; v6.operator<< (1); v6.operator< (1); v6.operator<= (1); v6.operator t1*(); struct t7 { }; f1(); f1(); f1(); f7(); f8(); using namespace ns; ttp_user(); f1(); t7i x; f1(); f7(); f1<_Atomic(int)>(); f1(); f1<__attribute__((__vector_size__(sizeof(int) * 2))) int>(); f1(); f1(); f1>(); t10 v3; f1(); f1(); f1(); f9(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); f1(); // f1[1]>(); f1(); f1(); struct t8 { decltype(A) m; }; f1(); f1(); } void t8::mem() { struct t7 { }; f1(); f1(); }