1 /* PR debug/69947 */ 2 /* { dg-do run } */ 3 /* { dg-options "-g" } */ 4 5 #include "../nop.h" 6 7 static const char *c = "foobar"; 8 9 __attribute__((noinline, noclone)) void foo(void)10foo (void) 11 { 12 static const char a[] = "abcdefg"; 13 const char *b = a; /* { dg-final { gdb-test 14 "c\[2\]" "'o'" } } */ 14 asm (NOP : : : "memory"); /* { dg-final { gdb-test 14 "b\[4\]" "'e'" } } */ 15 } 16 17 int main()18main () 19 { 20 foo (); 21 return 0; 22 } 23