commit 81e0baee919e0e14cf019f9abd556ba4692b3dac parent 76d8f0ce8320ce1802ad46692c86755149e47321 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Tue, 16 Nov 2021 08:20:51 +0100 tests/cc: Enable 0192-ptrcmp.c Diffstat:
A | tests/cc/execute/0192-ptrcmp.c | | | 17 | +++++++++++++++++ |
M | tests/cc/execute/scc-tests.lst | | | 2 | +- |
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/tests/cc/execute/0192-ptrcmp.c b/tests/cc/execute/0192-ptrcmp.c @@ -0,0 +1,17 @@ +struct ptrs { + unsigned char *rp; + unsigned char *wp; +}; + +struct ptrs iob[2]; + +int +main() +{ + static unsigned char buf[10]; + + iob[0].rp = buf; + iob[0].wp = buf+2; + + return (&iob[0])->rp >= (&iob[0])->wp; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -182,4 +182,4 @@ 0189-cpp-no.c [TODO] 0190-enum-ary.c 0191-ary-addr.c -0192-ptrcmp.c [TODO] +0192-ptrcmp.c