test for losing memory on compile errors