aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityOptimizer.cpp
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-11 21:57:07 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-16 20:49:55 +0800
commit893f4cf092c98d13116741d1ebc19846f6873536 (patch)
tree9449cbeb1abd76e2ca83804caa44c9f93f916de5 /test/libsolidity/SolidityOptimizer.cpp
parent931794001e92cbfe99c91da037cf36a1808d9df1 (diff)
downloaddexon-solidity-893f4cf092c98d13116741d1ebc19846f6873536.tar.gz
dexon-solidity-893f4cf092c98d13116741d1ebc19846f6873536.tar.zst
dexon-solidity-893f4cf092c98d13116741d1ebc19846f6873536.zip
Specifies visibility in unit tests.
Diffstat (limited to 'test/libsolidity/SolidityOptimizer.cpp')
-rw-r--r--test/libsolidity/SolidityOptimizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp
index 43ae5f73..70cbb0fc 100644
--- a/test/libsolidity/SolidityOptimizer.cpp
+++ b/test/libsolidity/SolidityOptimizer.cpp
@@ -104,7 +104,7 @@ public:
"\nOptimized: " + toHex(optimizedOutput));
}
- /// @returns the number of instructions in the given bytecode, not taking the metadata hash
+ /// @returns the number of intructions in the given bytecode, not taking the metadata hash
/// into account.
size_t numInstructions(bytes const& _bytecode, boost::optional<Instruction> _which = boost::optional<Instruction>{})
{
@@ -394,12 +394,12 @@ BOOST_AUTO_TEST_CASE(computing_constants)
g();
return 1;
}
- function g() {
+ function g() public {
m_b = 0x817416927846239487123469187231298734162934871263941234127518276;
m_c = 0x817416927846239487123469187231298734162934871263941234127518276;
h();
}
- function h() {
+ function h() public {
m_d = 0xff05694900000000000000000000000000000000000000000000000000000000;
}
function get() public returns (uint ra, uint rb, uint rc, uint rd) {
@@ -600,7 +600,7 @@ BOOST_AUTO_TEST_CASE(init_empty_dynamic_arrays)
// not use any memory.
char const* sourceCode = R"(
contract Test {
- function f() pure returns (uint r) {
+ function f() public pure returns (uint r) {
uint[][] memory x = new uint[][](20000);
return x.length;
}