def test_setjmp_many_2(self):
    src = '\n#include <setjmp.h>\n#include <stdio.h>\n\njmp_buf env;\n\nvoid luaWork(int d){\n    int x;\n    printf("d is at %d\\n", d);\n\n    longjmp(env, 1);\n}\n\nint main()\n{\n    const int ITERATIONS=25;\n    for(int i = 0; i < ITERATIONS; i++){\n        if(!setjmp(env)){\n            luaWork(i);\n        }\n    }\n    return 0;\n}\n'
    self.do_run(src, 'd is at 24')
def test_setjmp_many_2(self):
    src = '\n#include <setjmp.h>\n#include <stdio.h>\n\njmp_buf env;\n\nvoid luaWork(int d){\n    int x;\n    printf("d is at %d\\n", d);\n\n    longjmp(env, 1);\n}\n\nint main()\n{\n    const int ITERATIONS=25;\n    for(int i = 0; i < ITERATIONS; i++){\n        if(!setjmp(env)){\n            luaWork(i);\n        }\n    }\n    return 0;\n}\n'
    self.do_run(src, 'd is at 24')