swap functions generated in cpp output
empty file generation tested