scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a6692449e11bf9f40d051e0b8eb566bca72946ca
parent c93d98b686a627b492c2fff2c438909000643069
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  4 Nov 2021 07:35:42 +0100

tests/cc: Add error test for casts in lvalue

Diffstat:
Atests/cc/error/0024-lvale-cast.c | 9+++++++++
Mtests/cc/error/scc-tests.lst | 1+
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/cc/error/0024-lvale-cast.c b/tests/cc/error/0024-lvale-cast.c @@ -0,0 +1,9 @@ +int +main() +{ + int a; + + (char) a = 1025; + + return (a == 1) ? 0 : 1; +} diff --git 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]