ref: 249ecda69e6ec6de2dde995cc370239e9ff3e775
parent: 483b5ac034a0e696ef04927d1766db58852493c6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Oct 31 02:58:03 EDT 2021
tests/cc: Add test for negative enum constants
--- /dev/null
+++ b/tests/cc/execute/0183-negenum.c
@@ -1,0 +1,10 @@
+enum JSONError {
+ JSON_ERROR_MEM = -2,
+ JSON_ERROR_INVALID = -1
+};
+
+int
+main(void)
+{
+ return 0;
+}
--- 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