void test_switch(int i) { static int state; if (i == 0) state = 0; else if (i == 1 && some_condition) some_function(); else other_function(); }
Standard input is empty
prog.c: In function 'test_switch': prog.c:6:21: error: 'some_condition' undeclared (first use in this function) else if (i == 1 && some_condition) ^ prog.c:6:21: note: each undeclared identifier is reported only once for each function it appears in prog.c:7:5: warning: implicit declaration of function 'some_function' [-Wimplicit-function-declaration] some_function(); ^ prog.c:9:6: warning: implicit declaration of function 'other_function' [-Wimplicit-function-declaration] other_function(); ^ prog.c:2:13: warning: variable 'state' set but not used [-Wunused-but-set-variable] static int state; ^
Standard output is empty