view gcc/testsuite/gcc.dg/guality/pr54551.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/54551 */
/* { dg-do run } */
/* { dg-options "-g" } */

void  __attribute__((__noinline__))
bar (void)
{
  asm volatile ("");
}

int __attribute__((__noinline__))
foo (int x, int y, int z)
{
  if (x != z)
    {
      int a = z + 1;
      bar (); /* { dg-final { gdb-test .+1 "a" "4" } } */
      bar (); /* { dg-final { gdb-test . "z" "3" } } */
    }
  return y;
}

int
main ()
{
  foo (1, 2, 3);
  return 0;
}