1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

test related to issue #1222

This commit is contained in:
mrdudz 2020-09-24 12:23:18 +02:00
parent fb8b45e479
commit 97a1093ee0

12
test/val/bug1222.c Normal file
View File

@ -0,0 +1,12 @@
/* bug #1222 - 'sizeof' issues */
#include <stdlib.h>
int a[1];
int b[sizeof ++a[42]]; /* should work as '++a[42]' is actually unevaluated */
int main(void)
{
return EXIT_SUCCESS;
}