aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/dwarf2/pr88635.c
blob: 02c53d1001aa5d052e7fbc605ac12523ec117a50 (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
/* PR debug/88635 */
/* { dg-do assemble } */
/* { dg-options "-g -O2" } */
/* { dg-additional-options "-fpie" { target pie } } */

static void
foo (char *b)
{
  unsigned c = 0;
  --c;
  do
    if (++*b++ == 0)
      break;
  while (--c);
  if (c == 0)
    while (*b++)
      ;
}

void
bar (void)
{
  foo ("");
}