aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality/pr54519-6.c
blob: 732c268e45eea8a18ef716b71acbb4cabd234644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* 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" { xfail { aarch64*-*-* && { any-opts "-Os" } } } } } */
  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;
}