2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / guality / pr56154-3.c
blob095dce9f656d55649d14433e3d45bde5e3485e56
1 /* PR debug/56154 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
4 /* { dg-additional-sources "pr56154-aux.c" } */
6 #include "../nop.h"
8 extern void abort (void);
10 __attribute__((noinline, noclone)) int
11 foo (int x)
13 x++;
14 x++;
15 x++;
16 x++;
17 x++;
18 x++;
19 x++;
20 x++;
21 asm (NOP : : : "memory");
22 asm (NOP : : : "memory"); /* { dg-final { gdb-test pr56154-3.c:22 "x" "28" } } */
23 return x;
26 void
27 test_main (void)
29 if (foo (20) != 28)
30 abort ();