diff options
author | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-06-19 09:22:56 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-06-19 09:22:56 +0000 |
commit | 97d39d4133a547136c9831b743e6f96a29494610 (patch) | |
tree | 8e3204c85dcfec7b1047111028f4241662962a88 /gcc | |
parent | b1668acb81d27e9e4e33ad4920bfba1449413c64 (diff) | |
download | gcc-97d39d4133a547136c9831b743e6f96a29494610.zip gcc-97d39d4133a547136c9831b743e6f96a29494610.tar.gz gcc-97d39d4133a547136c9831b743e6f96a29494610.tar.bz2 |
Add missing test for r224643.
From-SVN: r224644
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/pr66581.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 0000000..015faae --- /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; +} |