Allow annotating inline assembly as memory-safe.

This commit is contained in:
Daniel Kirchner
2022-03-02 16:42:28 +01:00
parent e8520a667b
commit e6848caac1
9 changed files with 100 additions and 9 deletions
@@ -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 {}
}
}