diff options
author | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2018-12-23 17:10:36 +0100 |
---|---|---|
committer | Paweł Dybiec <pdybiec@stud.cs.uni.wroc.pl> | 2018-12-23 17:10:36 +0100 |
commit | a8a49e5b1f968d4ae160052a35242efc7ea30e30 (patch) | |
tree | e05b1314df984e1c3ebea212e77df96d76844ec8 /tests/pracownia4/pracownia3/038_fac_rec_5.xi | |
parent | Start of regalloc (diff) |
Update tests
Diffstat (limited to 'tests/pracownia4/pracownia3/038_fac_rec_5.xi')
-rw-r--r-- | tests/pracownia4/pracownia3/038_fac_rec_5.xi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pracownia4/pracownia3/038_fac_rec_5.xi b/tests/pracownia4/pracownia3/038_fac_rec_5.xi new file mode 100644 index 0000000..1258e53 --- /dev/null +++ b/tests/pracownia4/pracownia3/038_fac_rec_5.xi @@ -0,0 +1,15 @@ +fac(x:int):int +{ + if (x == 0) { + return 1 + } + return fac(x-1)*x +} + +main():int +{ + return fac(5) +} + +//@PRACOWNIA +//@out Exit code: 120 \ No newline at end of file |