aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/setjmp-pr93378.c
blob: e31e127d09df40ec7ef1259fe41691759337ff0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-additional-options "-O1 -g" } */
/* { dg-require-effective-target indirect_jumps } */

#include "test-setjmp.h"

jmp_buf buf;

int
test (void)
{
  if (setjmp (buf) != 0)
    return 0;

  longjmp (buf, 1);
  return 1;
}