From 1abb9da2b23b4de4b2e138818c1db7f7c537be96 Mon Sep 17 00:00:00 2001 From: acqn Date: Wed, 26 Aug 2020 09:40:32 +0800 Subject: [PATCH] Moved bug250.c to test/val as it is fixed. --- test/val/bug250.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/val/bug250.c diff --git a/test/val/bug250.c b/test/val/bug250.c new file mode 100644 index 000000000..60f3c633d --- /dev/null +++ b/test/val/bug250.c @@ -0,0 +1,13 @@ +/* bug #250 - Array size compile-time optimization stops halfway */ + +#include + +#define LZO_MAX(a,b) ((a) >= (b) ? (a) : (b)) +unsigned char c[2*4]; +unsigned char b[2*LZO_MAX(8,sizeof(int))]; // this will not compile + +int main(void) +{ + /* FIXME: add some runtime check */ + return EXIT_SUCCESS; +}