summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr34003-2.c
blob: a5330567f50b601b7d296006ec64e7772a110658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR bootstrap/34003 */
/* { dg-do compile } */
/* { dg-options "-O0" } */

extern void abort (void);

int seen = 0;

void foo (void)
{
  ++seen;
}

int main (void)
{
  extern int bar (void);
  if (bar () != 1 || seen != 1)
    abort ();
  return 0;
}