Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 1 | // Header for PCH test stmts.c |
2 | |||||
3 | void f0(int x) { | ||||
4 | // NullStmt | ||||
5 | ; | ||||
6 | // IfStmt | ||||
7 | if (x) { | ||||
8 | } else if (x + 1) { | ||||
9 | } | ||||
10 | |||||
11 | switch (x) { | ||||
12 | case 0: | ||||
13 | x = 17; | ||||
14 | break; | ||||
15 | |||||
16 | case 1: | ||||
17 | break; | ||||
18 | |||||
19 | default: | ||||
20 | break; | ||||
21 | } | ||||
Douglas Gregor | d921cf9 | 2009-04-17 00:16:09 +0000 | [diff] [blame] | 22 | |
23 | while (x > 20) { | ||||
24 | if (x > 30) { | ||||
25 | --x; | ||||
26 | continue; | ||||
Douglas Gregor | 67d8249 | 2009-04-17 00:29:51 +0000 | [diff] [blame^] | 27 | } else if (x < 5) |
28 | break; | ||||
Douglas Gregor | d921cf9 | 2009-04-17 00:16:09 +0000 | [diff] [blame] | 29 | } |
Douglas Gregor | 67d8249 | 2009-04-17 00:29:51 +0000 | [diff] [blame^] | 30 | |
31 | do { | ||||
32 | x++; | ||||
33 | } while (x < 10); | ||||
34 | |||||
35 | for (; x < 20; ++x) ; | ||||
Douglas Gregor | 025452f | 2009-04-17 00:04:06 +0000 | [diff] [blame] | 36 | } |