diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-03-07 11:28:31 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-03-07 11:28:31 -0800 |
| commit | e23194a1fa2ca176c9151964a2e035f36736e650 (patch) | |
| tree | 69b7a5897b862211e76bff41e104ac421d188b87 /tests/tcctest.c | |
| parent | 4fbe3cda330e6ac307c37888777145e7526a7078 (diff) | |
| download | tinycc-e23194a1fa2ca176c9151964a2e035f36736e650.tar.gz tinycc-e23194a1fa2ca176c9151964a2e035f36736e650.tar.bz2 | |
support c99 for-loop init decls
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index 1b2fb36..e0e0dba 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -387,6 +387,10 @@ void loop_test() } while (i < 10); printf("\n"); + /* c99 for loop init test */ + for (size_t count = 1; count < 3; count++) + printf("count=%d\n", count); + /* break/continue tests */ i = 0; while (1) { |
