solidity/test/libsolidity/syntaxTests/inlineAssembly/string_literal_switch_case.sol
2021-04-12 14:54:36 +02:00

10 lines
129 B
Solidity

contract C {
function f() public pure {
assembly {
switch codesize()
case "1" {}
case "2" {}
}
}
}