1 /* Test that use of strncpy does not result in a "value computed is
2    not used" warning.  */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -Wall" } */
5 
6 #include <string.h>
7 void
f(char * s)8 f (char *s)
9 {
10   strncpy (s, "::", 2);
11 }
12