1 #undef __USE_STRING_INLINES
2 #define __USE_STRING_INLINES
5 #if __GNUC_PREREQ (8, 0)
6 /* GCC warns about strncat truncating output; this is deliberately
7 tested here. If fortify is enabled, it is also triggered by the
9 DIAG_IGNORE_NEEDS_COMMENT (8, "-Wstringop-truncation");
20 DIAG_PUSH_NEEDS_COMMENT
;
21 strncat (d
, "\5\6", 1);
22 DIAG_POP_NEEDS_COMMENT
;
25 puts ("d[0] != '\\5'");
30 puts ("d[1] != '\\0'");
35 puts ("d[2] != '\\2'");