summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/template-params-1.C
blob: e28297b55916969eb6f204ef08647f1fc05adedb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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>
class A
{
    U m;
};

A<int> a;