2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr69947.c
blob6280ed5754ca520271d39499180aebbc99a0e692
1 /* PR debug/69947 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 #include "../nop.h"
7 static const char *c = "foobar";
9 __attribute__((noinline, noclone)) void
10 foo (void)
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'" } } */
17 int
18 main ()
20 foo ();
21 return 0;