Moved bug250.c to test/val as it is fixed.

This commit is contained in:
acqn 2020-08-26 09:40:32 +08:00
parent 3ea3887c77
commit 1abb9da2b2
1 changed files with 13 additions and 0 deletions

13
test/val/bug250.c Normal file
View File

@ -0,0 +1,13 @@
/* bug #250 - Array size compile-time optimization stops halfway */
#include <stdlib.h>
#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;
}