1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-30 20:29:25 +00:00

added testcase for issue #1075

This commit is contained in:
mrdudz 2020-07-13 15:12:30 +02:00
parent 693e3a7109
commit f5d99106e6

10
test/misc/bug1075.c Normal file
View File

@ -0,0 +1,10 @@
/* bug #1075 Internal compiler error */
long rhs;
int main(void)
{
/* the whole lhs is errorneously treated as an absolute address (integer
constant) neglecting its dereference */
return *(char *)0xD77C + rhs;
}