aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-07-03 17:51:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-02 20:36:05 +0800
commit5d9320c70b11b5ae1a44376451599732aa49dcde (patch)
tree6d41279efe62a7f9e62afcb119bdcfb045a3e5ea /test/libsolidity/syntaxTests/viewPureChecker
parent6003ed2abdea76e809b1e6501b9e5a85b38e5859 (diff)
downloaddexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.gz
dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.zst
dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.zip
Disallow loos assembly in Solidity by permanently setting it to SyntaxError (from Warning)
Diffstat (limited to 'test/libsolidity/syntaxTests/viewPureChecker')
-rw-r--r--test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol2
-rw-r--r--test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol3
2 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol
index 418be561..cc6ef183 100644
--- a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol
+++ b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_no_restrict_warning.sol
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
-// Warning: (58-65): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
+// SyntaxError: (58-65): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
diff --git a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol
index c1729db7..933bb4a3 100644
--- a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol
+++ b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol
@@ -4,5 +4,4 @@ contract C {
}
}
// ----
-// Warning: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
-// TypeError: (63-70): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
+// SyntaxError: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.