ref: 5e634ac1c908802ba442cb3780b386cfafeee531
parent: 56338bb08045561cdc17b33c9e9f4e5721807778
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Nov 17 05:49:44 EST 2021
tests/cc: Add error test 0027-constoverflow.c
--- /dev/null
+++ b/tests/cc/error/0027-constoverflow.c
@@ -1,0 +1,9 @@
+#include <limits.h>
+
+static long long var = LLONG_MAX + 1;
+
+int
+main()
+{
+ return 0;
+}
--- a/tests/cc/error/scc-tests.lst
+++ b/tests/cc/error/scc-tests.lst
@@ -24,3 +24,4 @@
0024-lvale-cast.c [TODO]
0025-bad-init.c [TODO]
0026-numargs.c [TODO]
+0027-constoverflow.c [TODO]