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

12 lines
209 B
Solidity
Raw Normal View History

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