mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-14 20:22:19 +00:00
11 lines
228 B
Text
11 lines
228 B
Text
|
fun f<T>(x: T): void asm "NOP";
|
||
|
|
||
|
fun failInstantiatingAsmFunctionWithNon1Slot() {
|
||
|
f((1, 2));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr can not call `f<T>` with T=(int, int), because it occupies 2 stack slots in TVM, not 1
|
||
|
*/
|