Added pointer test case

git-svn-id: http://picoc.googlecode.com/svn/trunk@103 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-02-24 02:12:20 +00:00
parent 37c2364eff
commit 318a966bd0
3 changed files with 9 additions and 1 deletions

6
tests/10_pointer.c Normal file
View file

@ -0,0 +1,6 @@
int a;
int *b;
a = 42;
b = &a;
printf("a = %d\n", *b);

1
tests/10_pointer.expect Normal file
View file

@ -0,0 +1 @@
42

View file

@ -7,7 +7,8 @@ TESTS= 00_assignment.test \
06_case.test \ 06_case.test \
07_function.test \ 07_function.test \
08_while.test \ 08_while.test \
09_do_while.test 09_do_while.test \
10_pointer.test
%.test: %.expect %.c %.test: %.expect %.c
@echo Test: $*... @echo Test: $*...