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

11 lines
137 B
Solidity
Raw Normal View History

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