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/] [do-empty.c] - Rev 316
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test diagnostics for empty bodies in do / while. */ /* { dg-do compile } */ /* { dg-options "-Wempty-body" } */ void f (int x) { do ; /* { dg-warning "empty body in" } */ while (x--); do {} /* { dg-bogus "empty body in" } */ while (++x < 10); }
Go to most recent revision | Compare with Previous | Blame | View Log