URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [gcc.dg/] [strncpy-fix-1.c] - Rev 519
Compare with Previous | Blame | View Log
/* 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); }