aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-24 08:14:45 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-25 17:45:31 +0800
commitab3978723ad5651832ec49f9217882bf0b14d981 (patch)
tree64bf8ce899af36c221af779e4a495081b1567127 /test/libsolidity/syntaxTests/inlineAssembly/function_without_call.sol
parentd647761058e3bb4b32846bd8b51f2de72fb85169 (diff)
downloaddexon-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.sol11
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.