1 // Origin PR debug/46955
2 // { dg-options "-g -dA" }
6 template<int S::*MP> struct T { };
9 // For the type of v, we should have this DWARF generated:
10 // .uleb128 0x6 # (DIE (0x57) DW_TAG_template_value_param)
11 // .ascii "MP\0" # DW_AT_name
12 // .long 0x61 # DW_AT_type
13 // .byte 0 # DW_AT_const_value
14 // So let's look for that.
15 // { dg-final { scan-assembler-times "\[^\n\r\]*DIE \\(\[^\n\r\]*\\) DW_TAG_template_value_param\[^\n\r\]*\[\n\r\]{1,2}\[^\n\r\]*DW_AT_name\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type\[\n\r\]{1,2}\[^\n\r\]*DW_AT_const_value\[\n\r\]{1,2}" 1 } }