scc

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

commit f5e0ed92d0d023e592dacb0152f7161c5b959200
parent 00d366a0535adf8b0bf934e398aae138426d7262
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  1 Jan 2025 00:43:21 +0100

tests/cc: Add more cases to 0052-switch

Diffstat:
Mtests/cc/execute/0052-switch.c | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0052-switch.c b/tests/cc/execute/0052-switch.c @@ -4,6 +4,20 @@ int main() { switch(x) + return 1; + switch(x) { + default: + return 1; + case 0: + ; + } + switch(x) { + case 1: + return 1; + case 2: + return 2; + } + switch(x) case 0: ; switch(x)