Commit f3d17b5e by Jakub Jelinek Committed by Jakub Jelinek

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
parent fdd8eb6d
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment