mirror of
https://github.com/cc65/cc65.git
synced 2024-08-16 12:29:03 +00:00
14 lines
290 B
C
14 lines
290 B
C
|
|
/* 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;
|
|
}
|