added testcase for issue #1075
This commit is contained in:
10
test/misc/bug1075.c
Normal file
10
test/misc/bug1075.c
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user