void foo (); #ifndef ONLY_MAIN void foo () { int x = 1; label: x = 2; } #endif #ifndef NO_MAIN int main () { foo(); } #endif