[hackers] [scc] [tests] Add 0117-pointarith.c || Roberto E. Vargas Caballero
commit 4354a0c2d46f80124a976e4dc5d76b99fcf50ddb
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Feb 22 10:33:47 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Feb 22 10:33:47 2017 +0100
[tests] Add 0117-pointarith.c
diff --git a/tests/execute/0117-pointarith.c b/tests/execute/0117-pointarith.c
new file mode 100644
index 0000000..6d0f013
--- /dev/null
+++ b/tests/execute/0117-pointarith.c
_AT_@ -0,0 +1,7 @@
+int
+main()
+{
+ int i, *p = &i;
+
+ return p - (void*) 0 == 0;
+}
diff --git a/tests/execute/scc-tests.lst b/tests/execute/scc-tests.lst
index 20978d0..c45d092 100644
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
_AT_@ -107,3 +107,4 @@
0114-shortassig.c
0115-null-comparision.c
0116-floatcmp.c
+0117-pointarith.c
Received on Wed Feb 22 2017 - 10:34:09 CET
This archive was generated by hypermail 2.3.0
: Wed Feb 22 2017 - 10:36:25 CET