| 1 |
// PR debug/45997 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-gdwarf-2 -dA" } |
| 4 |
|
| 5 |
typedef int my_int; |
| 6 |
typedef volatile my_int volatile_my_int; |
| 7 |
typedef const volatile_my_int const_volatile_my_int; |
| 8 |
|
| 9 |
my_int v_my_int = 0; |
| 10 |
volatile_my_int v_volatile_my_int = 1; |
| 11 |
const_volatile_my_int v_const_volatile_my_int = 4; |
| 12 |
|
| 13 |
int |
| 14 |
main () |
| 15 |
{ |
| 16 |
asm volatile ("" : : "r" (&v_my_int)); |
| 17 |
asm volatile ("" : : "r" (&v_volatile_my_int)); |
| 18 |
asm volatile ("" : : "r" (&v_const_volatile_my_int)); |
| 19 |
return 0; |
| 20 |
} |
| 21 |
|
| 22 |
// { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_base_type" 1 } } |