mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
436 B
Solidity
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
|