12 lines
217 B
C
12 lines
217 B
C
|
/* Test that use of strncpy does not result in a "value computed is
|
||
|
not used" warning. */
|
||
|
/* { dg-do compile } */
|
||
|
/* { dg-options "-O2 -Wall" } */
|
||
|
|
||
|
#include <string.h>
|
||
|
void
|
||
|
f (char *s)
|
||
|
{
|
||
|
strncpy (s, "::", 2);
|
||
|
}
|