aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-10 21:05:10 +0800
committerLianaHus <liana@ethdev.com>2015-09-10 21:05:10 +0800
commit30e89b3d9a85d7dba3e9858a19b3495e9c8f759a (patch)
treead4e03c8c117144dfd2cc4a9ac391322e71eb43c /test
parent3fc2561223c989885e1473cb29394bb07a26492f (diff)
downloaddexon-solidity-30e89b3d9a85d7dba3e9858a19b3495e9c8f759a.tar.gz
dexon-solidity-30e89b3d9a85d7dba3e9858a19b3495e9c8f759a.tar.zst
dexon-solidity-30e89b3d9a85d7dba3e9858a19b3495e9c8f759a.zip
added test
Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index aa423330..8f38adac 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -5230,6 +5230,17 @@ BOOST_AUTO_TEST_CASE(storage_string_as_mapping_key_without_variable)
BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(2)));
}
+BOOST_AUTO_TEST_CASE(string_as_mapping_key)
+{
+ char const* sourceCode = R"(
+ contract Test {
+ function f() { var x = new Test(); }
+ }
+ )";
+
+ compileAndRun(sourceCode, 0, "Test");
+}
+
BOOST_AUTO_TEST_SUITE_END()
}