From 87ab7d18218dd404ed4a06c60b8ed435b0a3c90f Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Mon, 2 Jul 2018 11:53:47 +0200 Subject: Fixes compilation errors. --- test/libsolidity/SolidityEndToEndTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 { -- cgit v1.2.3