blob: 76f831f26e2914c8a7cc6a49fbf0ffb237dd6c6d [file] [log] [blame]
/* PR middle-end/94423 */
/* { dg-do compile } */
/* { dg-options "-O2 -fsanitize=object-size" } */
void foo (void);
typedef struct { long buf[22]; } jmp_buf[1];
extern int sigsetjmp (jmp_buf, int) __attribute__ ((__nothrow__));
jmp_buf buf;
void
bar (int *c)
{
while (*c)
foo ();
while (*c)
sigsetjmp (buf, 0);
}