Nesting test added
git-svn-id: http://picoc.googlecode.com/svn/trunk@179 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
460a8df81f
commit
2f5a46681e
12
tests/16_nesting.c
Normal file
12
tests/16_nesting.c
Normal 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
18
tests/16_nesting.expect
Normal 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
|
|
@ -11,7 +11,8 @@ TESTS= 00_assignment.test \
|
||||||
10_pointer.test \
|
10_pointer.test \
|
||||||
12_hashdefine.test \
|
12_hashdefine.test \
|
||||||
13_integer_literals.test \
|
13_integer_literals.test \
|
||||||
14_if.test
|
14_if.test \
|
||||||
|
16_nesting.test
|
||||||
|
|
||||||
%.test: %.expect %.c
|
%.test: %.expect %.c
|
||||||
@echo Test: $*...
|
@echo Test: $*...
|
||||||
|
|
Loading…
Reference in a new issue