From: Michael Beck Date: Wed, 13 Aug 2008 14:02:21 +0000 (+0000) Subject: fastcall example X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=6af5001a11080d112d5dcc81286c5769eadf2b04;p=libfirm fastcall example [r21147] --- 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); +}