aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-03 18:01:07 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-13 21:18:40 +0800
commitee3a2c0599d3d5db65ab4b7de61e495ad2acd71c (patch)
tree0e6ea1b474cacdf4dfaedd94e8ae9c8233fb694f /test/libsolidity
parentb65601bb3d7050c1c46b1b6f09f31829f9f9ee63 (diff)
downloaddexon-solidity-ee3a2c0599d3d5db65ab4b7de61e495ad2acd71c.tar.gz
dexon-solidity-ee3a2c0599d3d5db65ab4b7de61e495ad2acd71c.tar.zst
dexon-solidity-ee3a2c0599d3d5db65ab4b7de61e495ad2acd71c.zip
Add end-to-end test
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 7b130082..94d3e168 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -9723,6 +9723,24 @@ BOOST_AUTO_TEST_CASE(multi_modifiers)
BOOST_CHECK(callContractFunction("x()") == encodeArgs(u256(12)));
}
+BOOST_AUTO_TEST_CASE(inlineasm_empty_let)
+{
+ char const* sourceCode = R"(
+ contract C {
+ function f() returns (uint a, uint b) {
+ assembly {
+ let x
+ let y, z
+ a := x
+ b := z
+ }
+ }
+ }
+ )";
+ compileAndRun(sourceCode, 0, "C");
+ BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(0), u256(0)));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}