aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/guality/pr54519-6.c
blob: 836ab1f6601cc173f606b559f1c074db9e03d38a (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 11 "x" "2" } } */
  asm volatile (NOP);	/* { dg-final { gdb-test 11 "y" "0" } } */
}

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

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