shithub: scc

Download patch

ref: 22e63b76976fd232a2e40e30845d35eca6325b02
parent: 43bc7a79ff2c3392462b87e4abd03e27e0d55f57
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jul 12 10:28:52 EDT 2018

[tests/scc] Add new regression test for sizeof

Sizeof doesn't admit expressions that begin with a cast.

--- /dev/null
+++ b/tests/scc/execute/0179-sizeof.c
@@ -1,0 +1,7 @@
+
+int
+main(void)
+{
+	sizeof((int) 1);
+	return 0;
+}
--- a/tests/scc/execute/scc-tests.lst
+++ b/tests/scc/execute/scc-tests.lst
@@ -169,3 +169,4 @@
 0176-macro.c [TODO]
 0177-literal.c [TODO]
 0178-include.c [TODO]
+0179-sizeof.c [TODO]