URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [strncpy-fix-1.c] - Rev 316
Go to most recent revision | 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); }
Go to most recent revision | Compare with Previous | Blame | View Log