// Contributed by Dodji Seketeli <dodji@redhat.com> | |
// origin PR debug/30161 | |
// { dg-options "-gdwarf-2 -dA" } | |
// { dg-do compile } | |
// { dg-final { scan-assembler "DW_TAG_template_value_param" } } | |
// { dg-final { scan-assembler "i\[^\n\r]* DW_AT_name" } } | |
// { dg-final { scan-assembler "3\[^\n\r]* DW_AT_const_value" } } | |
template <int i> | |
struct A | |
{ | |
int m; | |
A () | |
{ | |
m = i; | |
} | |
}; | |
const int foo = 1; | |
const int bar = 2; | |
A<foo+bar> a; | |