switch is still broken, copying over cparser testcase since noone runs the cparser...