blob: 5c997ecbcbbe684b15938bd75f30249b7eb1dca0 [file] [log] [blame]
/* APPLE LOCAL file mainline */
// { dg-options "-W" }
#define NOPE
void foo() {
while (1); /* { dg-error "while loop has empty body" }
{ dg-error "put the semicolon" "" { target *-*-* } 7 } */
{
}
for (;;); /* { dg-error "for loop has empty body" 1 }
{ dg-error "put the semicolon" "" { target *-*-* } 11 } */
{
}
while (1)
;
for (;;)
;
while (1) ;
for (;;) ;
while (1) NOPE;
for (;;) NOPE;
while (1)
NOPE;
for (;;)
NOPE;
}