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/] [ssp-1.c] - Rev 300
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run { target native } } */ /* { dg-options "-fstack-protector" } */ /* { dg-require-effective-target fstack_protector } */ #include <stdlib.h> void __stack_chk_fail (void) { exit (0); /* pass */ } int main () { int i; char foo[255]; // smash stack for (i = 0; i <= 400; i++) foo[i] = 42; return 1; /* fail */ }
Go to most recent revision | Compare with Previous | Blame | View Log