(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
guality/
pr56154-3.c
       1  /* PR debug/56154 */
       2  /* { dg-do run } */
       3  /* { dg-options "-g" } */
       4  /* { dg-additional-sources "pr56154-aux.c" } */
       5  
       6  #include "../nop.h"
       7  
       8  extern void abort (void);
       9  
      10  __attribute__((noinline, noclone)) int
      11  foo (int x)
      12  {
      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;
      24  }
      25  
      26  void
      27  test_main (void)
      28  {
      29    if (foo (20) != 28)
      30      abort ();
      31  }