2021-01-14 16:40:56 +00:00
|
|
|
// Expect 4 errors
|
2021-01-14 16:40:56 +00:00
|
|
|
|
|
|
|
void discard_stmt() { discard; }
|
|
|
|
|
|
|
|
int do_loop(int x) { do { x++; } while(x < 1); return x; }
|
|
|
|
|
|
|
|
int while_loop(int x) { while (x < 1) { x++; } return x; }
|
2021-01-14 16:40:56 +00:00
|
|
|
|
|
|
|
int switch_stmt(int x) { switch (x) { case 0: return 1; default: return x; } }
|