diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mppa/Makefile | 2 | ||||
-rw-r--r-- | test/mppa/call.c | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/test/mppa/Makefile b/test/mppa/Makefile index 6481af5e..9078bdb9 100644 --- a/test/mppa/Makefile +++ b/test/mppa/Makefile @@ -1,4 +1,4 @@ -ELF=simple.bin +ELF=simple.bin call.bin DEBUG:=$(if $(DEBUG),"-dall",) all: $(ELF) diff --git a/test/mppa/call.c b/test/mppa/call.c new file mode 100644 index 00000000..3f58b756 --- /dev/null +++ b/test/mppa/call.c @@ -0,0 +1,16 @@ +int sum(int a, int b){ + return a + b; +} + +int make_42(void){ + return 42; +} + +int make_18(void){ + return 18; +} + +int main(void){ + return sum(make_42(), make_18()); + //return make_42() + make_18(); +} |