1 /* Test case by Joseph S. Myers <jsm28@cam.ac.uk>. */
2 #undef __USE_STRING_INLINES
3 #define __USE_STRING_INLINES
14 DIAG_PUSH_NEEDS_COMMENT
;
15 #if __GNUC_PREREQ (8, 0)
16 /* GCC 8 warns about strncat truncating output; this is deliberately
18 DIAG_IGNORE_NEEDS_COMMENT (8, "-Wstringop-truncation");
20 strncat (d
, "\5\6", 1);
21 DIAG_POP_NEEDS_COMMENT
;
24 puts ("d[0] != '\\5'");
29 puts ("d[1] != '\\0'");
34 puts ("d[2] != '\\2'");