| 1 |
// Origin PR debug/PR46973 |
| 2 |
// { dg-options "-gdwarf-2 -dA" } |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
struct S |
| 6 |
{ |
| 7 |
int f; |
| 8 |
}; |
| 9 |
|
| 10 |
template<typename T, int I, int *P, int S::*MP> |
| 11 |
struct Base |
| 12 |
{ |
| 13 |
template<typename Z> |
| 14 |
struct Inner |
| 15 |
{ |
| 16 |
}; |
| 17 |
}; |
| 18 |
|
| 19 |
int a_global; |
| 20 |
|
| 21 |
int main () |
| 22 |
{ |
| 23 |
Base<long, 47, &a_global, &S::f>::Inner<float> inner; |
| 24 |
return 0; |
| 25 |
} |
| 26 |
|
| 27 |
// { dg-final { scan-assembler-times "DIE \\(\[^\n\r\]*\\) DW_TAG_template_type_param" 2 } } |
| 28 |
// { dg-final { scan-assembler-times "DIE \\(\[^\n\r\]*\\) DW_TAG_template_value_param" 3 } } |