Added pointer test case
git-svn-id: http://picoc.googlecode.com/svn/trunk@103 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
37c2364eff
commit
318a966bd0
6
tests/10_pointer.c
Normal file
6
tests/10_pointer.c
Normal 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
1
tests/10_pointer.expect
Normal file
|
@ -0,0 +1 @@
|
|||
42
|
|
@ -7,7 +7,8 @@ TESTS= 00_assignment.test \
|
|||
06_case.test \
|
||||
07_function.test \
|
||||
08_while.test \
|
||||
09_do_while.test
|
||||
09_do_while.test \
|
||||
10_pointer.test
|
||||
|
||||
%.test: %.expect %.c
|
||||
@echo Test: $*...
|
||||
|
|
Loading…
Reference in a new issue