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