diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/reference-2-nov.cpp')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/reference-2-nov.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/reference-2-nov.cpp b/gcc/testsuite/gcc.target/i386/mpx/reference-2-nov.cpp deleted file mode 100644 index cdd927c891e..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/reference-2-nov.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - - -#include "mpx-check.h" - -int buf[100]; - -int __attribute((nothrow)) -rd (int *&p, int i) -{ - int res = p[i]; - printf ("%d\n", res); - return res; -} - -void set_p (int *&ref) -{ - ref = buf; -} - -int mpx_test (int argc, const char **argv) -{ - int *p; - - set_p (p); - rd (p, 0); - rd (p, 99); - - return 0; -} |