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
This commit is contained in:
Jakub Jelinek 2016-12-29 19:51:29 +01:00 committed by Jakub Jelinek
parent fdd8eb6db5
commit f3d17b5e71
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-12-29 Jakub Jelinek <jakub@redhat.com>
* 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 <mliska@suse.cz>
PR c/78933

View File

@ -8,6 +8,7 @@
#include <stdio.h>
#include <string.h>
#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;