shithub: scc

Download patch

ref: 3cb873827cfb046e36a7b7e32a707a5b7aa96426
parent: 4afccc571200034864f9290b902fe6dddff4246e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 16 03:20:51 EST 2021

tests/cc: Enable 0192-ptrcmp.c

--- /dev/null
+++ b/tests/cc/execute/0192-ptrcmp.c
@@ -1,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;
+}
--- 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