shithub: scc

Download patch

ref: 5f5c0ab73ba310f45b725a44c0d9d38dd29f98d9
parent: f482bbbc27c14ba303837d0480f0678c8f9f4a9d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Feb 14 17:46:27 EST 2018

[test] Add execute test 177

It seems that compound literals are not correctly
decaided.

--- /dev/null
+++ b/tests/execute/0177-literal.c
@@ -1,0 +1,9 @@
+void boo(int *p)
+{
+	return (*p[1] == 2) ? 0 : 1;
+}
+
+int main()
+{
+	return boo((int[]) {0, 2});
+}
--- a/tests/execute/scc-tests.lst
+++ b/tests/execute/scc-tests.lst
@@ -167,3 +167,4 @@
 0174-decay.c [TODO]
 0175-defined.c [TODO]
 0176-macro.c [TODO]
+0177-literal.c [TODO]