aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/016.sh
blob: 02d335700e2cebbfdd48272b2c04428d364e050c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -e

bash ../../test_exit_code.sh 89 <<'EOF'
int fib(int n) {
    if (n <= 1) {
        return 1;
    } else {
        return fib(n - 1) + fib(n - 2);
    }
}

int main() {
    return fib(10);
}
EOF