Don't rely on C99 for loop initializers in test case

This allows compilation of the test case with GCC 4.8.