aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-02 17:53:47 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-04 21:45:42 +0800
commit87ab7d18218dd404ed4a06c60b8ed435b0a3c90f (patch)
tree015230d617c4ee73ee3225e4ab74c5afd42a8102 /test
parentcbfe3766dbbaa14dce1db208460f319cf778a84b (diff)
downloaddexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar.gz
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar.bz2
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar.lz
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar.xz
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.tar.zst
dexon-solidity-87ab7d18218dd404ed4a06c60b8ed435b0a3c90f.zip
Fixes compilation errors.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index b4c496a7..4b1cb99b 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -3028,7 +3028,7 @@ BOOST_AUTO_TEST_CASE(super_in_constructor)
contract A { function f() public returns (uint r) { return 1; } }
contract B is A { function f() public returns (uint r) { return super.f() | 2; } }
contract C is A { function f() public returns (uint r) { return super.f() | 4; } }
- contract D is B, C { uint data; function constructor() public { data = super.f() | 8; } function f() public returns (uint r) { return data; } }
+ contract D is B, C { uint data; constructor() public { data = super.f() | 8; } function f() public returns (uint r) { return data; } }
)";
compileAndRun(sourceCode, 0, "D");
ABI_CHECK(callContractFunction("f()"), encodeArgs(1 | 2 | 4 | 8));
@@ -9932,10 +9932,10 @@ BOOST_AUTO_TEST_CASE(packed_functions)
char const* sourceCode = R"(
contract C {
// these should take the same slot
- function() external returns (uint) a;
+ function() internal returns (uint) a;
function() external returns (uint) b;
function() external returns (uint) c;
- function() public returns (uint) d;
+ function() internal returns (uint) d;
uint8 public x;
function set() public {