diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 00:09:27 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-04 04:51:55 +0800 |
commit | 2211739fc4548c70be887d6666430a25b66a3bb8 (patch) | |
tree | fc97309080a7a77056c3fecb873825342fbbb001 /test/libsolidity/syntaxTests/inlineAssembly | |
parent | 87241fd58c7ddf45224f308f5fa10d88030bdb25 (diff) | |
download | dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar.gz dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar.bz2 dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar.lz dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar.xz dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.tar.zst dexon-solidity-2211739fc4548c70be887d6666430a25b66a3bb8.zip |
Update tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/inlineAssembly')
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol | 4 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol index 55c83674..b6dd12b8 100644 --- a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol @@ -1,6 +1,6 @@ contract C { uint[] x; - function() public { + function() external { uint[] storage y = x; assembly { pop(y) @@ -8,4 +8,4 @@ contract C { } } // ---- -// TypeError: (117-118): You have to use the _slot or _offset suffix to access storage reference variables. +// TypeError: (119-120): You have to use the _slot or _offset suffix to access storage reference variables. diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol index 3ae24b34..84f98ed9 100644 --- a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol @@ -1,6 +1,6 @@ contract C { uint[] x; - function() public { + function() external { uint[] storage y = x; assembly { pop(y_slot) |