mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
test related to issue #1222
This commit is contained in:
parent
fb8b45e479
commit
97a1093ee0
12
test/val/bug1222.c
Normal file
12
test/val/bug1222.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user