aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr59920-1.c
blob: 3e60d37ae2050a670b70548d40916a629ce79371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/59920 */
/* { dg-do compile } */
/* { dg-options "-O0" } */

#include <setjmp.h>

int bar (void);
void baz (int);

#define A { int x = bar (); if (setjmp (buf) == 0) baz (x); }
#define B A A A A A A A A A A
#define C B B B B B B B B B B

extern jmp_buf buf;

void
foo (void)
{
  C C
}