1 /* PR debug/41353 */ 2 /* { dg-do run } */ 3 /* { dg-options "-g" } */ 4 5 int varh; 6 int vari __attribute__((used)) = 17, varj; 7 8 __attribute__((noinline)) int f1(void)9f1 (void) 10 { 11 int vari1 = 2 * vari; /* { dg-final { gdb-test .+2 "vari1" "2 * 17" } } */ 12 int vari2 = 3 * vari; /* { dg-final { gdb-test .+1 "vari2" "3 * 17" } } */ 13 return varj; 14 } 15 16 int (*volatile fnp1) (void) = f1; 17 18 int main(int argc,char * argv[])19main (int argc, char *argv[]) 20 { 21 asm volatile ("" : : "r" (&fnp1) : "memory"); 22 fnp1 (); 23 return 0; 24 } 25