blob: a5ace32be9fc62dd2dfe32de14670c64a8a8a9dd [file] [log] [blame]
// RUN: test.sh -e -t %t %s
#define _GNU_SOURCE
#include <string.h>
// mempcpy() with too short a source.
int main()
{
int dest[6];
int source[5] = { 1, 2, 3, 4, 5 };
void *result;
result = mempcpy(&dest[0], &source[0], sizeof(int) * 6);
return 0;
}