gcc/libmudflap/testsuite/libmudflap.c/pass67-frag.c
Jakub Jelinek 959f8cd7da re PR middle-end/35314 (ICE with __builtin_setjmp and -fmudflap)
PR middle-end/35314
	* tree-mudflap.c (mf_build_check_statement_for): Split then_block
	after __mf_check call if the call must end a bb.

	* testsuite/libmudflap.c/pass67-frag.c: New test.

From-SVN: r141741
2008-11-10 14:48:06 +01:00

15 lines
189 B
C

/* PR middle-end/35314 */
/* { dg-do compile } */
/* { dg-options "-fmudflap" } */
#include <setjmp.h>
jmp_buf buf;
void
foo (volatile char *p)
{
if (__builtin_setjmp (buf))
*p;
}