Fix assertion concerning jumps in strict assembly.

This commit is contained in:
chriseth
2019-02-13 15:57:14 +01:00
parent 10888b21d8
commit 3a3ed1c6b5
5 changed files with 24 additions and 12 deletions
+1
View File
@@ -0,0 +1 @@
--strict-assembly
+3
View File
@@ -0,0 +1,3 @@
strict_asm_jump/input.sol:1:3: Error: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are disallowed in strict assembly. Use functions, "switch", "if" or "for" statements instead.
{ jump(1) }
^-----^
+1
View File
@@ -0,0 +1 @@
1
@@ -0,0 +1 @@
{ jump(1) }