From: Michael Beck Date: Wed, 7 Jun 2006 15:54:53 +0000 (+0000) Subject: test for compound call X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ff246583721540e61c4fb7ffa9c847efeb2046ba;p=libfirm test for compound call --- diff --git a/ir/be/test/structcall.c b/ir/be/test/structcall.c new file mode 100644 index 000000000..e0c8f523c --- /dev/null +++ b/ir/be/test/structcall.c @@ -0,0 +1,18 @@ +struct A { + int a; + int b; +}; + +int test(struct A arg) { + return arg.a + arg.b; +} + +int main(int argc, char *argv[]) { + struct A a; + + a.a = 3; + a.b = 4; + + printf("Sum = %d\n", test(a)); + return 0; +}