1 #include <string.h> 2 3 int 4 main(int argc, char **argv) 5 { 6 char foo[10]; 7 const char bar[] = "bar"; 8 9 /* The compiler should not simplify this into strcat. */ 10 strncat(foo, bar, sizeof(foo)); 11 12 return (1); 13 } 14