shithub: scc

Download patch

ref: a6692449e11bf9f40d051e0b8eb566bca72946ca
parent: c93d98b686a627b492c2fff2c438909000643069
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Nov 4 03:35:42 EDT 2021

tests/cc: Add error test for casts in lvalue

--- /dev/null
+++ b/tests/cc/error/0024-lvale-cast.c
@@ -1,0 +1,9 @@
+int
+main()
+{
+	int a;
+
+	(char) a = 1025;
+
+	return (a == 1) ? 0 : 1;
+}
--- a/tests/cc/error/scc-tests.lst
+++ b/tests/cc/error/scc-tests.lst
@@ -21,3 +21,4 @@
 0021-void.c [TODO]
 0022-cpp-if.c [TODO]
 0023-include.c [TODO]
+0024-lvale-cast.c [TODO]