solidity/test/libsolidity/syntaxTests/inlineAssembly/hex_switch_case.sol
2020-08-13 00:27:19 +01:00

12 lines
209 B
Solidity

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