From 2211739fc4548c70be887d6666430a25b66a3bb8 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 28 Jun 2018 18:09:27 +0200 Subject: Update tests. --- test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol | 4 ++-- .../libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test/libsolidity/syntaxTests/inlineAssembly') 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) -- cgit v1.2.3