Nesting test added

git-svn-id: http://picoc.googlecode.com/svn/trunk@179 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-03-09 20:48:26 +00:00
parent 460a8df81f
commit 2f5a46681e
3 changed files with 32 additions and 1 deletions

12
tests/16_nesting.c Normal file
View file

@ -0,0 +1,12 @@
int x, y, z;
for (x = 0; x < 2; x++)
{
for (y = 0; y < 3; y++)
{
for (z = 0; z < 3; z++)
{
printf("%d %d %d\n", x, y, z);
}
}
}

18
tests/16_nesting.expect Normal file
View file

@ -0,0 +1,18 @@
0 0 0
0 0 1
0 0 2
0 1 0
0 1 1
0 1 2
0 2 0
0 2 1
0 2 2
1 0 0
1 0 1
1 0 2
1 1 0
1 1 1
1 1 2
1 2 0
1 2 1
1 2 2

View file

@ -11,7 +11,8 @@ TESTS= 00_assignment.test \
10_pointer.test \
12_hashdefine.test \
13_integer_literals.test \
14_if.test
14_if.test \
16_nesting.test
%.test: %.expect %.c
@echo Test: $*...