From ff246583721540e61c4fb7ffa9c847efeb2046ba Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 7 Jun 2006 15:54:53 +0000 Subject: [PATCH] test for compound call --- ir/be/test/structcall.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ir/be/test/structcall.c 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; +} -- 2.20.1