diff --git a/test/misc/bug1075.c b/test/misc/bug1075.c new file mode 100644 index 000000000..be4cd75f4 --- /dev/null +++ b/test/misc/bug1075.c @@ -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; +}