solidity/test/libsolidity/memoryGuardTests/comment/multi_annotation.sol

18 lines
436 B
Solidity
Raw Normal View History

2022-02-10 16:57:43 +00:00
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