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