blob: 28085f1b7962dd2c2b779eaaa00e3bb2a97f4755 [file] [log] [blame]
// RUN: test.sh -e -t %t %s
// strncat() when the source array overlaps with the destination string
// starting after the destination string, and nul is one of the n
// characters to concatenate.
#include <string.h>
int main()
{
char string[20] = "a string";
strncat(string, &string[2], 10);
return 0;
}