Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-oak-8182.B
/
.
/
gcc
/
testsuite
/
gcc.dg
/
strncpy-fix-1.c
blob: b8bc916e00896f74e544c1bb5ad0f046b9993cf5 [
file
] [
log
] [
blame
]
/* 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
);
}