mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow annotating inline assembly as memory-safe.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
/// @test test
|
||||
assembly {}
|
||||
/// @solidity test
|
||||
assembly {}
|
||||
/// @param
|
||||
assembly {}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6269: (60-71): Unexpected natspec tag in inline assembly: test
|
||||
// Warning 8787: (95-106): Unexpected value for @solidity tag in inline assembly: test
|
||||
// Warning 7828: (122-133): Inline assembly has invalid natspec documentation.
|
||||
@@ -0,0 +1,6 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
// @solidity memory-safe-assembly
|
||||
assembly {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user