scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit f23faf185f95e3d2858ab63f757bd62c1e0849b3
parent 9fd36fb80508d28346e8767f86b1e6dc587993d5
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 30 Mar 2022 14:29:40 +0200

tests/cc: Use a compatible pointer in 0117-pointerarith

We can substract pointers of different type.

Diffstat:
Mtests/cc/execute/0117-pointarith.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cc/execute/0117-pointarith.c b/tests/cc/execute/0117-pointarith.c @@ -3,5 +3,5 @@ main() { int i, *p = &i; - return p - (void*) 0 == 0; + return p - (int*) 0 == 0; }