1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/crypto/func/auto-tests/tests/code_after_ifelse.fc

20 lines
296 B
Text
Raw Normal View History

2022-05-19 15:32:07 +00:00
int foo(int x) inline method_id(1) {
if (x == 1) {
return 111;
} else {
x *= 2;
}
return x + 1;
}
(int, int) main(int x) {
return (foo(x), 222);
}
{-
method_id | in | out
TESTCASE | 1 | 1 | 111
TESTCASE | 1 | 3 | 7
TESTCASE | 0 | 1 | 111 222
TESTCASE | 0 | 3 | 7 222
-}