URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [pr34088.c] - Rev 384
Compare with Previous | Blame | View Log
/* PR middle-end/34088 */ /* { dg-do compile } */ /* { dg-options "-O -Wall -Werror" } */ int F0 (int); int F1 (int t) { return F0(t); } int F2 (int t) { return F0(t); } extern int X[]; static inline int foo(int i) { return X[i]; } int bar(int* p) { int i; while ( ({ if (foo(*p) && foo(*p)); p; }) ); return i; /* { dg-error "is used uninitialized" } */ } /* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */