summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr86459.c
blob: 7856a372dcc89519c773c25a67f62a30c63e7bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-g -O2 -fno-var-tracking-assignments -gsplit-dwarf -g3" } */

/* Same as pr86064.c but compiled with -g3 it showed an issue in
   output_macinfo_op because of a typo in an assert.  */

int a;
__attribute__((__cold__)) void b();

void e(int *);
int f();

void c() {
  int d;
  e(&d);
  a = d;
  if (f())
    b();
}