Added missing tests
git-svn-id: http://picoc.googlecode.com/svn/trunk@261 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
16c5b72f4d
commit
a55cbe0516
16
tests/20_pointer_comparison.c
Normal file
16
tests/20_pointer_comparison.c
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
int a;
|
||||||
|
int b;
|
||||||
|
int *d;
|
||||||
|
int *e;
|
||||||
|
d = &a;
|
||||||
|
e = &b;
|
||||||
|
a = 12;
|
||||||
|
b = 34;
|
||||||
|
printf("%d\n", *d);
|
||||||
|
printf("%d\n", *e);
|
||||||
|
printf("%d\n", d == e);
|
||||||
|
printf("%d\n", d != e);
|
||||||
|
d = e;
|
||||||
|
printf("%d\n", d == e);
|
||||||
|
printf("%d\n", d != e);
|
||||||
|
|
6
tests/20_pointer_comparison.expect
Normal file
6
tests/20_pointer_comparison.expect
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
12
|
||||||
|
34
|
||||||
|
0
|
||||||
|
1
|
||||||
|
1
|
||||||
|
0
|
Loading…
Reference in a new issue