From: Jakub Jelinek Date: Thu, 29 Dec 2016 18:51:29 +0000 (+0100) Subject: memcpy-1.c: Include mpx-check.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3d17b5e71df5bae6d5fe34319058473aa6678d4;p=gcc.git memcpy-1.c: Include mpx-check.h. * gcc.target/i386/mpx/memcpy-1.c: Include mpx-check.h. (main): Renamed to ... (mpx_test): ... this. Add argc and argv arguments. From-SVN: r243965 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5e6db289f4b..46d47323d69 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-12-29 Jakub Jelinek + + * gcc.target/i386/mpx/memcpy-1.c: Include mpx-check.h. + (main): Renamed to ... + (mpx_test): ... this. Add argc and argv arguments. + 2016-12-29 Martin Liska PR c/78933 diff --git a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c b/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c index 169134829aa..6ecbdc1a322 100644 --- a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c +++ b/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c @@ -8,6 +8,7 @@ #include #include +#include "mpx-check.h" char s[10]; char d[10]; @@ -16,7 +17,7 @@ __attribute__((noinline)) char* foo(char* dst, char* src, size_t size) { return memcpy(dst, src, size); } -int main() { +int mpx_test(int argc, const char **argv) { char* r = foo(d, s, 11); printf("r = %p\n", r); return 0;