mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
added testcase for issue #250
This commit is contained in:
parent
f5d99106e6
commit
f8873c2508
13
test/misc/bug250.c
Normal file
13
test/misc/bug250.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user