diff options
author | D-Nice <yugoboy11@hotmail.com> | 2018-06-28 07:42:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 07:42:46 +0800 |
commit | d62476fb1f3c0e9399c413c988d50feb50821ef1 (patch) | |
tree | bfb9e76f1be2c7ab807397c7d5f410bed70a2322 /test | |
parent | b2f0d1db43de5db4e5f6559d2d6d4f4db1039a36 (diff) | |
download | dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar.gz dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar.bz2 dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar.lz dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar.xz dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.tar.zst dexon-solidity-d62476fb1f3c0e9399c413c988d50feb50821ef1.zip |
Adds storage_reference.sol syntax test
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol | 11 |
1 files changed, 11 insertions, 0 deletions
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. |