solidity/test/libsolidity/memoryGuardTests/comment/multi_annotation.sol
Daniel Kirchner 93dd8ad553 Tests.
2022-03-02 17:07:11 +01:00

18 lines
436 B
Solidity

contract C {
constructor() {
/// @solidity memory-safe-assembly a memory-safe-assembly
assembly { mstore(0, 0) }
}
function f() internal pure {
/// @solidity a memory-safe-assembly
assembly { mstore(0, 0) }
/// @solidity a
/// memory-safe-assembly
/// b
assembly { mstore(0, 0) }
}
}
// ----
// :C(creation) true
// :C(runtime) true