commit 249ecda69e6ec6de2dde995cc370239e9ff3e775 parent 483b5ac034a0e696ef04927d1766db58852493c6 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:
| A | tests/cc/execute/0183-negenum.c | | | 10 | ++++++++++ |
| M | tests/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