summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug_info_inline.c
blob: a9152615c73b819d0dfeb4ad387d6867a71f65a5 (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
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

int g, a;

static int foo ()
{
  int ret = a;

  if (g > -10)
    return 10;

  return ret;
}

int bar()
{
  if (foo())
    return 0;
  else
    return 1;
}

/* { dg-final { scan-assembler "loc 1 19 0\n.*\n.LBB" } } */