1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Allow constants with the same name and value (#462)

Co-authored-by: legaii <jgates.ardux@gmail.com>
This commit is contained in:
EmelyanenkoK 2022-09-20 14:16:53 +03:00 committed by GitHub
parent 2512f0287b
commit 3b1d33f543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 6 deletions

15
crypto/func/test/co2.fc Normal file
View file

@ -0,0 +1,15 @@
const int x = 5;
const slice s = "abacaba";
const int y = 3;
const slice s = "abacaba";
const int x = 5;
const int z = 4, z = 4;
int sdeq (slice s1, slice s2) asm "SDEQ";
() main() {
throw_unless(101, x == 5);
throw_unless(102, y == 3);
throw_unless(103, z == 4);
throw_unless(104, sdeq(s, "abacaba"));
}