summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69167.c
blob: bda02263d4e74a4e533dd9a76696564ca61b4206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR tree-optimization/69167 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int sigsetjmp (char *);
void foo ();
void bar (void (*) (int *));
extern char t[];

void
baz (int *x)
{
  int *a = x;
  foo ();
  x = 0;
  if (sigsetjmp (t))
    while (1)
      bar (a ? baz : 0);
  if (x)
    foo ();
}