foreach: make test more accurate, fix for 64-bit gcc 4.4.3
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:39:45 +0000 (12:09 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:39:45 +0000 (12:09 +1030)
commit83bba283bd7c94f083ea19df78e1e921b30d97b6
tree98a90b2744f5013f8e926731b1ff1dc55f7892a7
parenta8446c3ef94ae0d5f273656da12aa9a8b3abf658
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.
ccan/foreach/test/run-nested.c