Ignore warnings for yulOptimizer tests

This commit is contained in:
Harikrishnan Mulackal
2020-06-09 13:03:57 +02:00
committed by chriseth
parent 73e634924e
commit d8263d331e
12 changed files with 67 additions and 44 deletions
@@ -1,15 +1,7 @@
contract C {
struct S { bool f; }
S s;
function f(uint256 a) internal pure {
S storage c;
assembly {
switch a
default { c_slot := s_slot }
}
c;
}
function g(bool flag) internal pure {
function f(bool flag) internal pure {
S storage c;
assembly {
switch flag
@@ -18,7 +10,7 @@ contract C {
}
c;
}
function h(uint256 a) internal pure {
function g(uint256 a) internal pure {
S storage c;
assembly {
switch a
@@ -29,4 +21,3 @@ contract C {
}
}
// ----
// Warning: (141-190): "switch" statement with only a default case.