pjs/xpcom/tests/static-checker/flow_through_fail.cpp

17 строки
191 B
C++

static void MUST_FLOW_THROUGH(const char *label) {
}
int test(int x, int y) {
MUST_FLOW_THROUGH("out");
if (!x) {
x = y;
goto out;
}
return y;
out:
x--;
return x;
}