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

12 lines
195 B
Solidity
Raw Normal View History

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