solidity/test/libsolidity/syntaxTests/inlineAssembly/hex_switch_case.sol
Alex Beregszaszi caa329066e Do not emit Solidity-only tokens in the Scanner for Yul
And simplfiy AsmParser greatly.
2020-08-28 19:34:52 +01:00

12 lines
195 B
Solidity

contract C {
function f() public pure {
assembly {
switch codesize()
case hex"00" {}
case hex"1122" {}
}
}
}
// ----
// ParserError 4805: (95-99): Literal expected.