freebsd-dev/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_for_loops.c
Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

16 lines
240 B
C

/* 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;
}