solidity/test/libsolidity/syntaxTests/inlineAssembly/natspec_multi.sol
2022-04-01 23:41:18 -05:00

24 lines
1.3 KiB
Solidity

function f() pure {
/// @unrelated bogus-value
/// @before bogus-value
///
/// @solidity a memory-safe-assembly b c
/// d
/// @after bogus-value
assembly {}
/// @solidity memory-safe-assembly a a a
/// memory-safe-assembly
assembly {}
}
// ----
// Warning 6269: (189-200='assembly {}'): Unexpected NatSpec tag "after" with value "bogus-value" in inline assembly.
// Warning 6269: (189-200='assembly {}'): Unexpected NatSpec tag "before" with value "bogus-value" in inline assembly.
// Warning 8787: (189-200='assembly {}'): Unexpected value for @solidity tag in inline assembly: a
// Warning 8787: (189-200='assembly {}'): Unexpected value for @solidity tag in inline assembly: b
// Warning 8787: (189-200='assembly {}'): Unexpected value for @solidity tag in inline assembly: c
// Warning 8787: (189-200='assembly {}'): Unexpected value for @solidity tag in inline assembly: d
// Warning 8787: (289-300='assembly {}'): Unexpected value for @solidity tag in inline assembly: a
// Warning 4377: (289-300='assembly {}'): Value for @solidity tag in inline assembly specified multiple times: a
// Warning 4377: (289-300='assembly {}'): Value for @solidity tag in inline assembly specified multiple times: memory-safe-assembly