aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-09 17:43:33 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-09 17:46:13 +0800
commit80227af08a72e37e35a0a8bfacadc1c201f1d114 (patch)
tree4f8d0d9eee83e30912e78685d6c0fbdc916521a9 /test
parent6b3e7f79cf42edd031a2000978e394d818212b39 (diff)
downloaddexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar.gz
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar.bz2
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar.lz
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar.xz
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.tar.zst
dexon-solidity-80227af08a72e37e35a0a8bfacadc1c201f1d114.zip
Add test for two functions calling eachother
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/InlineAssembly.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index e9e310d0..3db07184 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -507,6 +507,7 @@ BOOST_AUTO_TEST_CASE(function_calls)
BOOST_CHECK(successAssemble("{ function f(a, b) -> x, y { x := b y := a } let a, b := f(2, 3) }"));
BOOST_CHECK(successAssemble("{ function rec(a) { rec(sub(a, 1)) } rec(2) }"));
BOOST_CHECK(successAssemble("{ let r := 2 function f() -> x, y { x := 1 y := 2} let a, b := f() b := r }"));
+ BOOST_CHECK(successAssemble("{ function f() { g() } function g() { f() } }"));
}
BOOST_AUTO_TEST_CASE(embedded_functions)