diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-24 08:14:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 17:45:31 +0800 |
commit | ab3978723ad5651832ec49f9217882bf0b14d981 (patch) | |
tree | 64bf8ce899af36c221af779e4a495081b1567127 /test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol | |
parent | d647761058e3bb4b32846bd8b51f2de72fb85169 (diff) | |
download | dexon-solidity-ab3978723ad5651832ec49f9217882bf0b14d981.tar.gz dexon-solidity-ab3978723ad5651832ec49f9217882bf0b14d981.tar.zst dexon-solidity-ab3978723ad5651832ec49f9217882bf0b14d981.zip |
Add more tests for inlineasm/AsmAnalyzer
Diffstat (limited to 'test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol b/test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol new file mode 100644 index 00000000..8557e2fa --- /dev/null +++ b/test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol @@ -0,0 +1,11 @@ +contract C { + function f() public pure { + assembly { + function k() {} + + k + } + } +} +// ---- +// TypeError: (86-87): Function k used without being called. |