Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin PR debug/30161
3 // { dg-do compile { target c++11 } }
4 // { dg-options "-gdwarf-2 -dA -fno-merge-debug-strings" }
5
6 // The type M<> should have one DW_TAG_GNU_template_parameter_pack DIE,
7 // with no DW_AT_name attribute. We don't test the fact that it has no
8 // DW_AT_name though.
9 // { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_GNU_template_parameter_pack" 1 } }
10
11
12 template <typename...>
13 struct M
14 {
15 };
16
17 struct R :
18 M<>
19 {
20 };
21
22 R r;