1 // { dg-options "-gdwarf-2 -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\]* DW_AT_const_value" 1 } }
4 #include "template-params-12.H"
5 /* We get const_value for NULL pointers to member functions.  */
6 #if __cplusplus > 199711L // Ugh, C++98 barfs at both the cast and the overload.
7 template void t<static_cast<void (S::*)()>(0)>();
8 #else
9 template void t<&S::v>();
10 #endif
11