foreach: make test more accurate, fix for 64-bit gcc 4.4.3
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 on x86_64 uses a different stack offset for the second call to test_ptr_recursion(), meaning it sees new iterators. Put it inside a loop to reduce the chance of that happening.
Showing
Please register or sign in to comment