Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/guality/pr56154-3.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR debug/56154 */ /* { dg-do run } */ /* { dg-options "-g" } */ /* { dg-additional-sources "pr56154-aux.c" } */ #include "../nop.h" extern void abort (void); __attribute__((noinline, noclone)) int foo (int x) { x++; x++; x++; x++; x++; x++; x++; x++; asm (NOP : : : "memory"); asm (NOP : : : "memory"); /* { dg-final { gdb-test pr56154-3.c:22 "x" "28" } } */ return x; } void test_main (void) { if (foo (20) != 28) abort (); }