2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr43593.c
blobd8cc41359be9ac50cba335a105c99c3533aacac6
1 /* PR debug/43593 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 void __attribute__((noinline))
6 bar (int *p)
8 asm volatile ("" : : "r" (p) : "memory");
11 int __attribute__((noinline))
12 foo (void)
14 int i, *j = &i;
15 bar (j);
16 return 6 + i; /* { dg-final { gdb-test 16 "j" "&i" } } */
19 int
20 main (void)
22 foo ();
23 return 0;