Add passing test case

This commit is contained in:
D-Nice 2018-06-28 16:45:53 -04:00
parent d62476fb1f
commit 3cad417710
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,6 @@
contract C {
uint[] x;
function() {
function() public {
uint[] storage y = x;
assembly {
pop(y)
@ -8,4 +8,4 @@ contract C {
}
}
// ----
// TypeError: (110-111): You have to use the _slot or _offset suffix to access storage reference variables.
// TypeError: (117-118): You have to use the _slot or _offset suffix to access storage reference variables.

View File

@ -0,0 +1,11 @@
contract C {
uint[] x;
function() public {
uint[] storage y = x;
assembly {
pop(y_slot)
pop(y_offset)
}
}
}
// ----