1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 11:42:18 +00:00
ton/crypto/func/auto-tests/tests/unbalanced_ret_inline.fc
2022-09-23 16:27:18 +03:00

18 lines
262 B
Text

int foo(int x) inline {
if (x < 0) {
x *= 2;
if (x == -10) {
return 111;
}
}
return x + 1;
}
int main(int x) {
return foo(x) * 10;
}
{-
method_id | in | out
TESTCASE | 0 | 10 | 110
TESTCASE | 0 | -5 | 1110
TESTCASE | 0 | -4 | -70
-}