aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD-Nice <yugoboy11@hotmail.com>2018-06-28 07:42:46 +0800
committerGitHub <noreply@github.com>2018-06-28 07:42:46 +0800
commitd62476fb1f3c0e9399c413c988d50feb50821ef1 (patch)
treebfb9e76f1be2c7ab807397c7d5f410bed70a2322
parentb2f0d1db43de5db4e5f6559d2d6d4f4db1039a36 (diff)
downloaddexon-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
-rw-r--r--test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol11
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.