From f0d256bfdbf569973f55a9e4a7739b639ffc25e2 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 3 Jul 2020 12:26:35 +0100 Subject: [PATCH] Add test case for jumpi in inline assembly --- .../inlineAssembly/invalid/jumpi_disallowed.sol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/libsolidity/syntaxTests/inlineAssembly/invalid/jumpi_disallowed.sol diff --git a/test/libsolidity/syntaxTests/inlineAssembly/invalid/jumpi_disallowed.sol b/test/libsolidity/syntaxTests/inlineAssembly/invalid/jumpi_disallowed.sol new file mode 100644 index 000000000..1b4fc4a65 --- /dev/null +++ b/test/libsolidity/syntaxTests/inlineAssembly/invalid/jumpi_disallowed.sol @@ -0,0 +1,9 @@ +contract C { + function f() pure public { + assembly { + jumpi(2, 1) + } + } +} +// ---- +// DeclarationError 4619: (75-80): Function not found.