mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
@code_hash to match (boc) hash of compiled.fif against expected. While being much less flexible than @fif_codegen, it nevertheless gives a guarantee of bytecode stability on compiler modifications.
19 lines
314 B
Text
19 lines
314 B
Text
int main(int x) {
|
|
int i = 0;
|
|
;; int f = false;
|
|
do {
|
|
i = i + 1;
|
|
if (i > 5) {
|
|
return 1;
|
|
}
|
|
int f = (i * i == 64);
|
|
} until (f);
|
|
return -1;
|
|
}
|
|
|
|
{-
|
|
method_id | in | out
|
|
TESTCASE | 0 | 0 | 1
|
|
|
|
@code_hash 36599880583276393028571473830850694081778552118303309411432666239740650614479
|
|
-}
|