Newer
Older
UbixOS / contrib / netbsd-tests / usr.bin / xlint / lint1 / d_c99_for_loops.c
@Charlie Root Charlie Root on 31 Dec 2017 240 bytes More Cleanup
/* c99 for loops */
extern void foo(int);

int
main(void)
{
	// Test the basic functionality
	for (int i = 0; i < 10; i++)
		foo(i);

	// Test that the scope of the iterator is correct
	for (int i = 0; i < 10; i++)
		continue;
	return 0;
}