summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr59993.c
blob: 57ecdde6938c2c2ab90cf0453a2f42e55e39f228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-require-effective-target indirect_jumps } */

#include <setjmp.h>

extern int optind;
jmp_buf jump_buf;
void foo (jmp_buf, int);
void bar (char *);
int
main (int argc, char **argv)
{
  foo (jump_buf, setjmp(jump_buf));
  argv += optind;
  bar(argv[1]);
}