scc

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

commit 991b29b122f43163c769510dedb5d2d7ed0c5bb2
parent 127c1b7e3029959004d49aedcf3475342bbff623
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; }