solidity/test/libsolidity/syntaxTests/inlineAssembly/reserved_identifiers.sol

14 lines
438 B
Solidity
Raw Normal View History

2020-07-29 18:13:44 +00:00
contract C {
function f() public pure {
assembly {
let linkersymbol := 1
let datacopy := 1
let swap16 := 1
}
}
}
// ----
// DeclarationError 5017: (67-79): The identifier "linkersymbol" is reserved and can not be used.
// DeclarationError 5017: (95-103): The identifier "datacopy" is reserved and can not be used.
// DeclarationError 5017: (119-125): The identifier "swap16" is reserved and can not be used.