mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
add test for issue #1504
This commit is contained in:
parent
d736032675
commit
4a57656f69
13
test/val/bug1504.c
Normal file
13
test/val/bug1504.c
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
/* bug #1504 - Some compilation failures */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i = 0, *p = &i;
|
||||
switch (i) case 0: case 1: i = 21; /* Should be OK but fails */
|
||||
p++[0] += 21; /* Should be OK but fails */
|
||||
printf("%d\n", i);
|
||||
return i != 42;
|
||||
}
|
Loading…
Reference in New Issue
Block a user