summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-1.C
blob: 3a43d9fa5713196cff95fed7870766b2ca52e061 (plain)
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);