Test for sizeof added

git-svn-id: http://picoc.googlecode.com/svn/trunk@391 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-11-07 20:25:31 +00:00
parent 97ad53a6b2
commit 47f6ef6831
3 changed files with 9 additions and 1 deletions

5
tests/35_sizeof.c Normal file
View file

@ -0,0 +1,5 @@
char a;
short b;
printf("%d %d\n", sizeof(char), sizeof(a));
printf("%d %d\n", sizeof(short), sizeof(b));

2
tests/35_sizeof.expect Normal file
View file

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

View file

@ -27,7 +27,8 @@ TESTS= 00_assignment.test \
26_character_constants.test \
28_strings.test \
29_array_address.test \
34_array_assignment.test
34_array_assignment.test \
35_sizeof.test
%.test: %.expect %.c
@echo Test: $*...