blob: 66e65908e7e2c0bc1d4eacbf0122a57b79981852 [file] [log] [blame]
// RUN: test.sh -e -t %t %s
// strncat() where the source array overlaps with the destination, the
// source array begins before the destination, and nul is not one of the
// n characters to concatenate.
#include <string.h>
int main()
{
char string[20] = "a string";
strncat(&string[4], &string[1], 5);
return 0;
}