1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// Contributed by Dodji Seketeli <dodji@redhat.com> // origin PR debug/30161 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "U.*DW_AT_name" } } template <class U> U func(U m) { return m; } int i = func<int>(2);