commit 5e634ac1c908802ba442cb3780b386cfafeee531 parent 56338bb08045561cdc17b33c9e9f4e5721807778 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Wed, 17 Nov 2021 10:49:44 +0100 tests/cc: Add error test 0027-constoverflow.c Diffstat:
| A | tests/cc/error/0027-constoverflow.c | | | 9 | +++++++++ |
| M | tests/cc/error/scc-tests.lst | | | 1 | + |
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/tests/cc/error/0027-constoverflow.c b/tests/cc/error/0027-constoverflow.c @@ -0,0 +1,9 @@ +#include <limits.h> + +static long long var = LLONG_MAX + 1; + +int +main() +{ + return 0; +} diff --git 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]