Simple test of closures in C