diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-07 19:13:52 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-07 20:18:38 +0800 |
commit | eb7b3862ac5089615710d07c9a56b8edc0472394 (patch) | |
tree | 4bb0af26fbbb098267140b11838b72eb9e9037ae /test | |
parent | 8b2d630275fb29d2915af76f608be4d4e422907f (diff) | |
download | dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar.gz dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar.bz2 dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar.lz dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar.xz dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.tar.zst dexon-solidity-eb7b3862ac5089615710d07c9a56b8edc0472394.zip |
Properly handle invalid references used together with _slot and _offset.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol new file mode 100644 index 00000000..6838e7a4 --- /dev/null +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol @@ -0,0 +1,9 @@ +contract C { + function f() pure public { + assembly { + let x := f_slot + } + } +} +// ---- +// DeclarationError: (84-90): Identifier not found. |