URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [uninit-pred-loop-1_c.cc] - Rev 717
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ extern int bar(); int foo(int n, int m) { for (;;) { int err = ({int _err; for (int i = 0; i < 16; ++i) { if (m+i > n) break; _err = 17; _err = bar(); } _err; }); if (err == 0) return 17; }); /* { dg-warning "uninitialized" "warn on _err" } */ } return 18; }
Go to most recent revision | Compare with Previous | Blame | View Log