solidity/test/libsolidity/semanticTests/experimental/stub.sol
Daniel Kirchner 7a8c997438 tmp
2023-06-21 01:50:00 +02:00

36 lines
433 B
Solidity

pragma experimental solidity;
class a:StackType {
function stackSize() -> x:integer;
}
instantiation word : StackType {
function stackSize() -> x:integer {
return x;
}
}
function f(a) -> b {
return a;
}
contract C {
fallback() external {
let x : word;
let y : word;
assembly {
x := 0x42
}
y = f(x);
assembly {
mstore(0, y)
return(0, 32)
}
}
}
// ====
// compileViaYul: true
// ----
// () -> 21