aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr111039.c
blob: 0ba142b0a59e4e89008badf39d34c4f82a407c99 (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 "-std=gnu17 -O" } */

#if __SIZEOF_INT__ < 4
#define int __INT32_TYPE__
#endif

int _setjmp ();
void abcd ();
void abcde ();
void compiler_corruption_function(int flags)
{
  int nowait = flags & 1048576, isexpand = flags & 8388608;
  abcd();
  _setjmp(flags);
  if (nowait && isexpand)
    flags &= 0;
  abcde();
}