2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr54551.c
blob4235f78ce7313f5f21807ff0f6163317a6917b32
1 /* PR debug/54551 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
5 void __attribute__((__noinline__))
6 bar (void)
8 asm volatile ("");
11 int __attribute__((__noinline__))
12 foo (int x, int y, int z)
14 if (x != z)
16 int a = z + 1;
17 bar (); /* { dg-final { gdb-test 18 "a" "4" } } */
18 bar (); /* { dg-final { gdb-test 18 "z" "3" } } */
20 return y;
23 int
24 main ()
26 foo (1, 2, 3);
27 return 0;