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

12 lines
221 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
assembly {
switch codesize()
case hex"00" {}
case hex"1122" {}
}
}
}
// ----
// ParserError 3772: (92-99): Hex literals are not valid in this context.