Add test case for string literals in switch statements in Yul

This commit is contained in:
Alex Beregszaszi 2020-08-13 00:26:52 +01:00
parent 18eed44688
commit b752551ebd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,9 @@
contract C {
function f() public pure {
assembly {
switch codesize()
case "1" {}
case "2" {}
}
}
}

View File

@ -0,0 +1,5 @@
{
switch codesize()
case "1" {}
case "2" {}
}