mirror of https://github.com/cc65/cc65.git
test related to issue #1222
This commit is contained in:
parent
fb8b45e479
commit
97a1093ee0
|
@ -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