scc

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

commit bd258d7177cb3532b33f457c1fdc7ac7523258cc
parent a6c8c2a1b53daa8c2ce23391cbc2d5c34a91f7fb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  1 Nov 2021 10:07:09 +0100

tests/cc: Fix 0182-voidcast.c

Reading an automatic value not initialized is not
defined in the standard, and qbe has some problems
in this kind of cases. As we are not testing that
case in the test it is better to remove that problem.

Diffstat:
Mtests/cc/execute/0182-voidcast.c | 15++++++++-------
Mtests/cc/execute/scc-tests.lst | 2+-
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/tests/cc/execute/0182-voidcast.c b/tests/cc/execute/0182-voidcast.c @@ -1,13 +1,14 @@ +int i; +char c; +float f; +int *ptr; +enum { + INT +} e; + int main() { - int i; - char c; - float f; - int *ptr; - enum { - INT - } e; (void) i; (void) c; diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -172,7 +172,7 @@ 0179-sizeof.c [TODO] 0180-incomplete.c 0181-stringize.c [TODO] -0182-voidcast.c [TODO] +0182-voidcast.c 0183-negenum.c 0184-esc-macro.c 0185-esc-macro2.c