From f5d99106e6610f9cb6bd699aa587c7321ef47074 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Mon, 13 Jul 2020 15:12:30 +0200 Subject: [PATCH] added testcase for issue #1075 --- test/misc/bug1075.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/misc/bug1075.c 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; +}