scc

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

commit 8d766f5ca161ccadd0b6de4895170522b0ac26f1
parent 23c8bf378dbacedf2f7f2869978f73709fc355e7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 31 Oct 2021 06:58:03 +0100

tests/cc: Add test for negative enum constants

Diffstat:
Atests/cc/execute/0183-negenum.c | 10++++++++++
Mtests/cc/execute/scc-tests.lst | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0183-negenum.c b/tests/cc/execute/0183-negenum.c @@ -0,0 +1,10 @@ +enum JSONError { + JSON_ERROR_MEM = -2, + JSON_ERROR_INVALID = -1 +}; + +int +main(void) +{ + return 0; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -173,3 +173,4 @@ 0180-incomplete.c 0181-stringize.c [TODO] 0182-voidcast.c [TODO] +0183-negenum.c