| 1 |
// PR debug/67664 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-gdwarf-2 -dA" } |
| 4 |
|
| 5 |
struct T |
| 6 |
{ |
| 7 |
static const int a = 0; |
| 8 |
}; |
| 9 |
|
| 10 |
int main() |
| 11 |
{ |
| 12 |
T t; |
| 13 |
return t.a; |
| 14 |
} |
| 15 |
|
| 16 |
// Once for the value and once for the abbrev |
| 17 |
// { dg-final { scan-assembler-times "DW_AT_const_value" 2 } } |