From 97d39d4133a547136c9831b743e6f96a29494610 Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Fri, 19 Jun 2015 09:22:56 +0000 Subject: [PATCH] Add missing test for r224643. From-SVN: r224644 --- gcc/testsuite/gcc.target/i386/mpx/pr66581.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/mpx/pr66581.c 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; +} -- 2.30.2