[PR49366] emit loc exprs for C++ non-virtual pmf template value parms
[official-gcc.git] / gcc / testsuite / g++.dg / debug / dwarf2 / template-params-12s.C
blob8940eaf1d7978034e7ce2f77600ab33af55ddec6
1 // { dg-options "-gdwarf-4 -gstrict-dwarf -dA" }
2 // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param" 1 } }
3 // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param\[^\n\]*\n\[^\n\]* DW_AT_name\n\[^\n\]* DW_AT_type\n\[^\n\]* \[^\n\]*DIE" 1 } }
4 #include "template-params-12.H"
5 /* We do NOT get a value or location for this one, because we've
6    enabled strict DWARF 4, and it could only be emitted as a location,
7    which is DWARF 5 only for template value params.  */
8 template void t<&S::f>();