aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr/individual/tailcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/instr/individual/tailcall.c')
-rw-r--r--test/mppa/instr/individual/tailcall.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/mppa/instr/individual/tailcall.c b/test/mppa/instr/individual/tailcall.c
new file mode 100644
index 00000000..6c659a01
--- /dev/null
+++ b/test/mppa/instr/individual/tailcall.c
@@ -0,0 +1,16 @@
+#include "framework.h"
+
+int make(int a){
+ return a;
+}
+
+int sum(int a, int b){
+ return make(a+b);
+}
+
+BEGIN_TEST(int)
+{
+ c = sum(a, b);
+}
+END_TEST32()
+/* RETURN VALUE: 60 */