2009-04-17 08:04:06 +08:00
|
|
|
// Header for PCH test stmts.c
|
|
|
|
|
|
|
|
void f0(int x) {
|
|
|
|
// NullStmt
|
|
|
|
;
|
|
|
|
// IfStmt
|
|
|
|
if (x) {
|
|
|
|
} else if (x + 1) {
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (x) {
|
|
|
|
case 0:
|
|
|
|
x = 17;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2009-04-18 00:34:57 +08:00
|
|
|
switch (x >> 1) {
|
|
|
|
case 7:
|
|
|
|
// fall through
|
|
|
|
case 9:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
x += 2;
|
2009-04-17 08:04:06 +08:00
|
|
|
break;
|
|
|
|
}
|
2009-04-17 08:16:09 +08:00
|
|
|
|
|
|
|
while (x > 20) {
|
|
|
|
if (x > 30) {
|
|
|
|
--x;
|
|
|
|
continue;
|
2009-04-17 08:29:51 +08:00
|
|
|
} else if (x < 5)
|
|
|
|
break;
|
2009-04-17 08:16:09 +08:00
|
|
|
}
|
2009-04-17 08:29:51 +08:00
|
|
|
|
|
|
|
do {
|
|
|
|
x++;
|
|
|
|
} while (x < 10);
|
|
|
|
|
2009-04-18 00:55:36 +08:00
|
|
|
for (int y = x; y < 20; ++y) {
|
|
|
|
if (x + y == 12)
|
2009-04-18 00:34:57 +08:00
|
|
|
return;
|
|
|
|
}
|
2009-04-18 00:55:36 +08:00
|
|
|
|
|
|
|
int z = x, *y, j = 5;
|
2009-04-18 00:34:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int f1(int x) {
|
|
|
|
switch (x) {
|
|
|
|
case 17:
|
|
|
|
return 12;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return x*2;
|
2009-04-17 08:04:06 +08:00
|
|
|
}
|
2009-04-18 00:55:36 +08:00
|
|
|
|
|
|
|
const char* what_is_my_name(void) { return __func__; }
|