From: Ilya Enkovich Date: Fri, 19 Jun 2015 09:22:56 +0000 (+0000) Subject: Add missing test for r224643. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97d39d4133a547136c9831b743e6f96a29494610;p=gcc.git Add missing test for r224643. From-SVN: r224644 --- diff --git a/gcc/testsuite/gcc.target/i386/mpx/pr66581.c b/gcc/testsuite/gcc.target/i386/mpx/pr66581.c new file mode 100644 index 00000000000..015faaeae50 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/mpx/pr66581.c @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ + +void *a; +int b; + +void +fn1 (void) +{ + void *c = &&l_nop; +l_nop: + for (; b;) + ; + int *d = c; + c = fn1; + *d = 1; + goto *a; +}