aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-08-17 17:28:02 +0800
committerGitHub <noreply@github.com>2016-08-17 17:28:02 +0800
commite7683f4722791d39ca63913ec98feb1ea9f5164d (patch)
treea94bb062fc66a955005d7eafa7160ee3ad35dd63 /test/libsolidity/SolidityEndToEndTest.cpp
parente4578982c6e1a39ca3457ab1844be37b500dedda (diff)
parent15b85e2ea809ab09ec78955e80666b64b80ddbf1 (diff)
downloaddexon-solidity-e7683f4722791d39ca63913ec98feb1ea9f5164d.tar.gz
dexon-solidity-e7683f4722791d39ca63913ec98feb1ea9f5164d.tar.zst
dexon-solidity-e7683f4722791d39ca63913ec98feb1ea9f5164d.zip
Merge pull request #836 from chriseth/unusedunderscore
BREAKING: Require modifiers to contain "_".
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 3920d948..a1ab7700 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -2410,7 +2410,7 @@ BOOST_AUTO_TEST_CASE(function_modifier_overriding)
modifier mod { _ }
}
contract C is A {
- modifier mod { }
+ modifier mod { if (false) _ }
}
)";
compileAndRun(sourceCode);
@@ -2427,7 +2427,7 @@ BOOST_AUTO_TEST_CASE(function_modifier_calling_functions_in_creation_context)
function f2() { data |= 0x20; }
function f3() { }
modifier mod1 { f2(); _ }
- modifier mod2 { f3(); }
+ modifier mod2 { f3(); if (false) _ }
function getData() returns (uint r) { return data; }
}
contract C is A {