diff options
author | chriseth <chris@ethereum.org> | 2018-04-05 23:02:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 23:02:43 +0800 |
commit | 543e1e19c73776939bb9a6c244b9749a33f3d61b (patch) | |
tree | b2af65c50b957246fa563dc7008c4d207d58440c /test | |
parent | d74b71a554395de42ee53ce1d16a03b7cef3fd92 (diff) | |
parent | 5b1c0506faf865d5ff056bec8094211f0fa90600 (diff) | |
download | dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar.gz dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar.bz2 dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar.lz dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar.xz dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.tar.zst dexon-solidity-543e1e19c73776939bb9a6c244b9749a33f3d61b.zip |
Merge pull request #3831 from ethereum/memory-suffix
Allow ``memory`` suffix for internal elementary type parsing.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityTypes.cpp | 1 |
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"); |