From 6af5001a11080d112d5dcc81286c5769eadf2b04 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 13 Aug 2008 14:02:21 +0000 Subject: [PATCH] fastcall example [r21147] --- ir/be/test/fastcall.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ir/be/test/fastcall.c diff --git a/ir/be/test/fastcall.c b/ir/be/test/fastcall.c new file mode 100644 index 000000000..1a5d9f87b --- /dev/null +++ b/ir/be/test/fastcall.c @@ -0,0 +1,9 @@ +/*$ -fno-inline $*/ + +int __attribute__((fastcall)) test(int a, int b, int c) { + return a+b - c; +} + +int main() { + return test(4, -4, 0); +} -- 2.20.1