URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [Wunreachable-2.c] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -Wunreachable-code" } */ extern int foo (const char *); extern void baz (void); const char *a[] = { "one", "two" }; void bar (void) { int i; for (i = 0; i < 2; i++) if (! foo (a[i])) return; baz (); /* { dg-bogus "will never be executed" } */ baz (); baz (); }
Go to most recent revision | Compare with Previous | Blame | View Log