solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/multiple_assign_to_instruction.sol
Mathias Baumann f395d5bab4 Add extra token for assembly assignment
Adding an extra token for := prevents whitespace between : = being valid
2019-02-21 13:58:21 +01:00

12 lines
268 B
Solidity

contract C {
function f() public pure {
assembly {
function g() -> a,b, c {}
let a, sub, mov := g()
}
}
}
// ----
// ParserError: (102-105): Cannot use instruction names for identifier names.
// ParserError: (105-106): Expected ';' but got ','