Test for sizeof added
git-svn-id: http://picoc.googlecode.com/svn/trunk@391 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
97ad53a6b2
commit
47f6ef6831
5
tests/35_sizeof.c
Normal file
5
tests/35_sizeof.c
Normal 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
2
tests/35_sizeof.expect
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
1 1
|
||||||
|
2 2
|
|
@ -27,7 +27,8 @@ TESTS= 00_assignment.test \
|
||||||
26_character_constants.test \
|
26_character_constants.test \
|
||||||
28_strings.test \
|
28_strings.test \
|
||||||
29_array_address.test \
|
29_array_address.test \
|
||||||
34_array_assignment.test
|
34_array_assignment.test \
|
||||||
|
35_sizeof.test
|
||||||
|
|
||||||
%.test: %.expect %.c
|
%.test: %.expect %.c
|
||||||
@echo Test: $*...
|
@echo Test: $*...
|
||||||
|
|
Loading…
Reference in a new issue