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

bash ../../test_exit_code.sh 45 <<'EOF'
int main() {
    int i;
    int ret;
    i = 0;
    ret = 0;
    for (i = 0; i < 10; i = i + 1) {
        ret = ret + i;
    }
    return ret;
}
EOF