URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wunused-var-1.c] - Rev 689
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-Wunused" } */ int f1 (void) { int a; int foo (void) { return a; } a = 1; return foo (); } void f2 (void) { int a; /* { dg-warning "set but not used" } */ void foo (void) { a = 2; } a = 1; foo (); }