comparison gcc/testsuite/gcc.dg/strncpy-fix-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Test that use of strncpy does not result in a "value computed is 1 /* Test that use of strncpy does not result in a "value computed is
2 not used" warning. */ 2 not used" warning. */
3 /* { dg-do compile } */ 3 /* { dg-do compile } */
4 /* { dg-options "-O2 -Wall" } */ 4 /* { dg-options "-O2 -Wall -Wno-stringop-truncation" } */
5 5
6 #include <string.h> 6 #include <string.h>
7 void 7 void
8 f (char *s) 8 f (char *s)
9 { 9 {