From d62476fb1f3c0e9399c413c988d50feb50821ef1 Mon Sep 17 00:00:00 2001 From: D-Nice Date: Wed, 27 Jun 2018 19:42:46 -0400 Subject: Adds storage_reference.sol syntax test --- .../syntaxTests/inlineAssembly/storage_reference.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol (limited to 'test/libsolidity') diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol new file mode 100644 index 00000000..7b56102f --- /dev/null +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol @@ -0,0 +1,11 @@ +contract C { + uint[] x; + function() { + uint[] storage y = x; + assembly { + pop(y) + } + } +} +// ---- +// TypeError: (110-111): You have to use the _slot or _offset suffix to access storage reference variables. -- cgit