aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-30 20:45:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-05 22:06:04 +0800
commit5b1c0506faf865d5ff056bec8094211f0fa90600 (patch)
treec6443295361dac6428e7a70a76e283c040b1226a /test/libsolidity
parent95b0589f7739ebfd0c1c9cde8a07332cba039296 (diff)
downloaddexon-solidity-5b1c0506faf865d5ff056bec8094211f0fa90600.tar.gz
dexon-solidity-5b1c0506faf865d5ff056bec8094211f0fa90600.tar.zst
dexon-solidity-5b1c0506faf865d5ff056bec8094211f0fa90600.zip
Allow ``memory`` suffix for internal elementary type parsing.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityTypes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityTypes.cpp b/test/libsolidity/SolidityTypes.cpp
index bc9f2fe1..738b24bc 100644
--- a/test/libsolidity/SolidityTypes.cpp
+++ b/test/libsolidity/SolidityTypes.cpp
@@ -123,6 +123,7 @@ BOOST_AUTO_TEST_CASE(type_identifiers)
BOOST_CHECK_EQUAL(Type::fromElementaryTypeName("bytes32")->identifier(), "t_bytes32");
BOOST_CHECK_EQUAL(Type::fromElementaryTypeName("bool")->identifier(), "t_bool");
BOOST_CHECK_EQUAL(Type::fromElementaryTypeName("bytes")->identifier(), "t_bytes_storage_ptr");
+ BOOST_CHECK_EQUAL(Type::fromElementaryTypeName("bytes memory")->identifier(), "t_bytes_memory_ptr");
BOOST_CHECK_EQUAL(Type::fromElementaryTypeName("string")->identifier(), "t_string_storage_ptr");
ArrayType largeintArray(DataLocation::Memory, Type::fromElementaryTypeName("int128"), u256("2535301200456458802993406410752"));
BOOST_CHECK_EQUAL(largeintArray.identifier(), "t_array$_t_int128_$2535301200456458802993406410752_memory_ptr");