URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [strncpy-fix-1.c] - Rev 801
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