diff options
author | chriseth <chris@ethereum.org> | 2018-06-14 14:41:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 14:41:36 +0800 |
commit | 66188573edf65acdbf3f4df00f70c85d3bf55787 (patch) | |
tree | de225bc1e0f6f0dc29ab7984088752106dbfe5cd /test/libsolidity/ABIDecoderTests.cpp | |
parent | 014bbc6c97a4abdf8eed5d0273d00c80308e355d (diff) | |
parent | a211b8911885ded6ddcd4d7400994a85235fe8e4 (diff) | |
download | dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar.gz dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar.bz2 dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar.lz dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar.xz dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.tar.zst dexon-solidity-66188573edf65acdbf3f4df00f70c85d3bf55787.zip |
Merge pull request #4236 from ethereum/v050-disallow-empty-structs
[BREAKING] Enforce disallowing empty structs
Diffstat (limited to 'test/libsolidity/ABIDecoderTests.cpp')
-rw-r--r-- | test/libsolidity/ABIDecoderTests.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp index b3ebb7a5..b588ca1b 100644 --- a/test/libsolidity/ABIDecoderTests.cpp +++ b/test/libsolidity/ABIDecoderTests.cpp @@ -659,26 +659,6 @@ BOOST_AUTO_TEST_CASE(struct_function) ) } -BOOST_AUTO_TEST_CASE(empty_struct) -{ - string sourceCode = R"( - contract C { - struct S { } - function f(uint a, S s, uint b) public pure returns (uint x, uint y) { - assembly { x := a y := b } - } - function g() public returns (uint, uint) { - return this.f(7, S(), 8); - } - } - )"; - NEW_ENCODER( - compileAndRun(sourceCode, 0, "C"); - ABI_CHECK(callContractFunction("f(uint256,(),uint256)", 7, 8), encodeArgs(7, 8)); - ABI_CHECK(callContractFunction("g()"), encodeArgs(7, 8)); - ) -} - BOOST_AUTO_TEST_CASE(mediocre_struct) { string sourceCode = R"( |