From 75bfbe5c04ff451fbaa7af45dbb6f70c4e8de9ce Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 6 Aug 2007 14:24:49 +0000 Subject: [PATCH] fehler61: static function whose address is stored in a global variable incorrectly is marked as fastcall. [r15479] --- ir/be/test/fehler61.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ir/be/test/fehler61.c diff --git a/ir/be/test/fehler61.c b/ir/be/test/fehler61.c new file mode 100644 index 000000000..d720c2c22 --- /dev/null +++ b/ir/be/test/fehler61.c @@ -0,0 +1,14 @@ +#include + +static void f(int i) +{ + printf("%d (should be 42)\n", i); +} + +void (*x)(int) = f; + +int main(void) +{ + x(42); + return 0; +} -- 2.20.1