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

#include "../nop.h"

static inline void
f1 (int x, int y)
{
  asm volatile (NOP);	/* { dg-final { gdb-test .+1 "x" "2" } } */
  asm volatile (NOP);	/* { dg-final { gdb-test . "y" "0" } } */
}

static inline void
f2 (int z)
{
  f1 (z, 0);
  f1 (z, 1);
}

int
main ()
{
  f2 (2);
  f2 (3);
  return 0;
}