mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -19,21 +19,21 @@
|
||||
dup32()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-10): Function "dup0" not found.
|
||||
// DeclarationError 4619: (17-21): Function "dup1" not found.
|
||||
// DeclarationError 4619: (28-32): Function "dup2" not found.
|
||||
// DeclarationError 4619: (39-43): Function "dup3" not found.
|
||||
// DeclarationError 4619: (50-54): Function "dup4" not found.
|
||||
// DeclarationError 4619: (61-65): Function "dup5" not found.
|
||||
// DeclarationError 4619: (72-76): Function "dup6" not found.
|
||||
// DeclarationError 4619: (83-87): Function "dup7" not found.
|
||||
// DeclarationError 4619: (94-98): Function "dup8" not found.
|
||||
// DeclarationError 4619: (105-109): Function "dup9" not found.
|
||||
// DeclarationError 4619: (116-121): Function "dup10" not found.
|
||||
// DeclarationError 4619: (128-133): Function "dup11" not found.
|
||||
// DeclarationError 4619: (140-145): Function "dup12" not found.
|
||||
// DeclarationError 4619: (152-157): Function "dup13" not found.
|
||||
// DeclarationError 4619: (164-169): Function "dup14" not found.
|
||||
// DeclarationError 4619: (176-181): Function "dup15" not found.
|
||||
// DeclarationError 4619: (188-193): Function "dup16" not found.
|
||||
// DeclarationError 4619: (200-205): Function "dup32" not found.
|
||||
// DeclarationError 4619: (6-10='dup0'): Function "dup0" not found.
|
||||
// DeclarationError 4619: (17-21='dup1'): Function "dup1" not found.
|
||||
// DeclarationError 4619: (28-32='dup2'): Function "dup2" not found.
|
||||
// DeclarationError 4619: (39-43='dup3'): Function "dup3" not found.
|
||||
// DeclarationError 4619: (50-54='dup4'): Function "dup4" not found.
|
||||
// DeclarationError 4619: (61-65='dup5'): Function "dup5" not found.
|
||||
// DeclarationError 4619: (72-76='dup6'): Function "dup6" not found.
|
||||
// DeclarationError 4619: (83-87='dup7'): Function "dup7" not found.
|
||||
// DeclarationError 4619: (94-98='dup8'): Function "dup8" not found.
|
||||
// DeclarationError 4619: (105-109='dup9'): Function "dup9" not found.
|
||||
// DeclarationError 4619: (116-121='dup10'): Function "dup10" not found.
|
||||
// DeclarationError 4619: (128-133='dup11'): Function "dup11" not found.
|
||||
// DeclarationError 4619: (140-145='dup12'): Function "dup12" not found.
|
||||
// DeclarationError 4619: (152-157='dup13'): Function "dup13" not found.
|
||||
// DeclarationError 4619: (164-169='dup14'): Function "dup14" not found.
|
||||
// DeclarationError 4619: (176-181='dup15'): Function "dup15" not found.
|
||||
// DeclarationError 4619: (188-193='dup16'): Function "dup16" not found.
|
||||
// DeclarationError 4619: (200-205='dup32'): Function "dup32" not found.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
let x := 0100
|
||||
}
|
||||
// ----
|
||||
// ParserError 1465: (15-16): Illegal token: Octal numbers not allowed.
|
||||
// ParserError 1465: (15-16='0'): Illegal token: Octal numbers not allowed.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
jump(2)
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-10): Function "jump" not found.
|
||||
// DeclarationError 4619: (6-10='jump'): Function "jump" not found.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
jumpdest()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-14): Function "jumpdest" not found.
|
||||
// DeclarationError 4619: (6-14='jumpdest'): Function "jumpdest" not found.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
jumpi(2, 1)
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-11): Function "jumpi" not found.
|
||||
// DeclarationError 4619: (6-11='jumpi'): Function "jumpi" not found.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
label:
|
||||
}
|
||||
// ----
|
||||
// ParserError 6913: (11-12): Call or assignment expected.
|
||||
// ParserError 6913: (11-12=':'): Call or assignment expected.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
mload(0)
|
||||
}
|
||||
// ----
|
||||
// TypeError 3083: (6-14): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
|
||||
// TypeError 3083: (6-14='mload(0)'): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
|
||||
|
||||
@@ -6,4 +6,4 @@ object "C" {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 3083: (82-97): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
|
||||
// TypeError 3083: (82-97='calldataload(0)'): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
1
|
||||
}
|
||||
// ----
|
||||
// ParserError 6913: (8-9): Call or assignment expected.
|
||||
// ParserError 6913: (8-9='}'): Call or assignment expected.
|
||||
|
||||
@@ -5,5 +5,5 @@ object "C" {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 6913: (65-66): Call or assignment expected.
|
||||
// ParserError 2314: (67-68): Expected end of source but got '}'
|
||||
// ParserError 6913: (65-66='}'): Call or assignment expected.
|
||||
// ParserError 2314: (67-68='}'): Expected end of source but got '}'
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
// ====
|
||||
// dialect: evmTyped
|
||||
// ----
|
||||
// SyntaxError 2450: (10-12): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.
|
||||
// SyntaxError 2450: (10-12='pc'): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.
|
||||
|
||||
@@ -34,36 +34,36 @@
|
||||
push32()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-11): Function "push0" not found.
|
||||
// DeclarationError 4619: (18-23): Function "push1" not found.
|
||||
// DeclarationError 4619: (30-35): Function "push2" not found.
|
||||
// DeclarationError 4619: (42-47): Function "push3" not found.
|
||||
// DeclarationError 4619: (54-59): Function "push4" not found.
|
||||
// DeclarationError 4619: (66-71): Function "push5" not found.
|
||||
// DeclarationError 4619: (78-83): Function "push6" not found.
|
||||
// DeclarationError 4619: (90-95): Function "push7" not found.
|
||||
// DeclarationError 4619: (102-107): Function "push8" not found.
|
||||
// DeclarationError 4619: (114-119): Function "push9" not found.
|
||||
// DeclarationError 4619: (126-132): Function "push10" not found.
|
||||
// DeclarationError 4619: (139-145): Function "push11" not found.
|
||||
// DeclarationError 4619: (152-158): Function "push12" not found.
|
||||
// DeclarationError 4619: (165-171): Function "push13" not found.
|
||||
// DeclarationError 4619: (178-184): Function "push14" not found.
|
||||
// DeclarationError 4619: (191-197): Function "push15" not found.
|
||||
// DeclarationError 4619: (204-210): Function "push16" not found.
|
||||
// DeclarationError 4619: (217-223): Function "push17" not found.
|
||||
// DeclarationError 4619: (230-236): Function "push18" not found.
|
||||
// DeclarationError 4619: (243-249): Function "push19" not found.
|
||||
// DeclarationError 4619: (256-262): Function "push20" not found.
|
||||
// DeclarationError 4619: (269-275): Function "push21" not found.
|
||||
// DeclarationError 4619: (282-288): Function "push22" not found.
|
||||
// DeclarationError 4619: (295-301): Function "push23" not found.
|
||||
// DeclarationError 4619: (308-314): Function "push24" not found.
|
||||
// DeclarationError 4619: (321-327): Function "push25" not found.
|
||||
// DeclarationError 4619: (334-340): Function "push26" not found.
|
||||
// DeclarationError 4619: (347-353): Function "push27" not found.
|
||||
// DeclarationError 4619: (360-366): Function "push28" not found.
|
||||
// DeclarationError 4619: (373-379): Function "push29" not found.
|
||||
// DeclarationError 4619: (386-392): Function "push30" not found.
|
||||
// DeclarationError 4619: (399-405): Function "push31" not found.
|
||||
// DeclarationError 4619: (412-418): Function "push32" not found.
|
||||
// DeclarationError 4619: (6-11='push0'): Function "push0" not found.
|
||||
// DeclarationError 4619: (18-23='push1'): Function "push1" not found.
|
||||
// DeclarationError 4619: (30-35='push2'): Function "push2" not found.
|
||||
// DeclarationError 4619: (42-47='push3'): Function "push3" not found.
|
||||
// DeclarationError 4619: (54-59='push4'): Function "push4" not found.
|
||||
// DeclarationError 4619: (66-71='push5'): Function "push5" not found.
|
||||
// DeclarationError 4619: (78-83='push6'): Function "push6" not found.
|
||||
// DeclarationError 4619: (90-95='push7'): Function "push7" not found.
|
||||
// DeclarationError 4619: (102-107='push8'): Function "push8" not found.
|
||||
// DeclarationError 4619: (114-119='push9'): Function "push9" not found.
|
||||
// DeclarationError 4619: (126-132='push10'): Function "push10" not found.
|
||||
// DeclarationError 4619: (139-145='push11'): Function "push11" not found.
|
||||
// DeclarationError 4619: (152-158='push12'): Function "push12" not found.
|
||||
// DeclarationError 4619: (165-171='push13'): Function "push13" not found.
|
||||
// DeclarationError 4619: (178-184='push14'): Function "push14" not found.
|
||||
// DeclarationError 4619: (191-197='push15'): Function "push15" not found.
|
||||
// DeclarationError 4619: (204-210='push16'): Function "push16" not found.
|
||||
// DeclarationError 4619: (217-223='push17'): Function "push17" not found.
|
||||
// DeclarationError 4619: (230-236='push18'): Function "push18" not found.
|
||||
// DeclarationError 4619: (243-249='push19'): Function "push19" not found.
|
||||
// DeclarationError 4619: (256-262='push20'): Function "push20" not found.
|
||||
// DeclarationError 4619: (269-275='push21'): Function "push21" not found.
|
||||
// DeclarationError 4619: (282-288='push22'): Function "push22" not found.
|
||||
// DeclarationError 4619: (295-301='push23'): Function "push23" not found.
|
||||
// DeclarationError 4619: (308-314='push24'): Function "push24" not found.
|
||||
// DeclarationError 4619: (321-327='push25'): Function "push25" not found.
|
||||
// DeclarationError 4619: (334-340='push26'): Function "push26" not found.
|
||||
// DeclarationError 4619: (347-353='push27'): Function "push27" not found.
|
||||
// DeclarationError 4619: (360-366='push28'): Function "push28" not found.
|
||||
// DeclarationError 4619: (373-379='push29'): Function "push29" not found.
|
||||
// DeclarationError 4619: (386-392='push30'): Function "push30" not found.
|
||||
// DeclarationError 4619: (399-405='push31'): Function "push31" not found.
|
||||
// DeclarationError 4619: (412-418='push32'): Function "push32" not found.
|
||||
|
||||
@@ -19,21 +19,21 @@
|
||||
swap32()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (6-11): Function "swap0" not found.
|
||||
// DeclarationError 4619: (18-23): Function "swap1" not found.
|
||||
// DeclarationError 4619: (30-35): Function "swap2" not found.
|
||||
// DeclarationError 4619: (42-47): Function "swap3" not found.
|
||||
// DeclarationError 4619: (54-59): Function "swap4" not found.
|
||||
// DeclarationError 4619: (66-71): Function "swap5" not found.
|
||||
// DeclarationError 4619: (78-83): Function "swap6" not found.
|
||||
// DeclarationError 4619: (90-95): Function "swap7" not found.
|
||||
// DeclarationError 4619: (102-107): Function "swap8" not found.
|
||||
// DeclarationError 4619: (114-119): Function "swap9" not found.
|
||||
// DeclarationError 4619: (126-132): Function "swap10" not found.
|
||||
// DeclarationError 4619: (139-145): Function "swap11" not found.
|
||||
// DeclarationError 4619: (152-158): Function "swap12" not found.
|
||||
// DeclarationError 4619: (165-171): Function "swap13" not found.
|
||||
// DeclarationError 4619: (178-184): Function "swap14" not found.
|
||||
// DeclarationError 4619: (191-197): Function "swap15" not found.
|
||||
// DeclarationError 4619: (204-210): Function "swap16" not found.
|
||||
// DeclarationError 4619: (217-223): Function "swap32" not found.
|
||||
// DeclarationError 4619: (6-11='swap0'): Function "swap0" not found.
|
||||
// DeclarationError 4619: (18-23='swap1'): Function "swap1" not found.
|
||||
// DeclarationError 4619: (30-35='swap2'): Function "swap2" not found.
|
||||
// DeclarationError 4619: (42-47='swap3'): Function "swap3" not found.
|
||||
// DeclarationError 4619: (54-59='swap4'): Function "swap4" not found.
|
||||
// DeclarationError 4619: (66-71='swap5'): Function "swap5" not found.
|
||||
// DeclarationError 4619: (78-83='swap6'): Function "swap6" not found.
|
||||
// DeclarationError 4619: (90-95='swap7'): Function "swap7" not found.
|
||||
// DeclarationError 4619: (102-107='swap8'): Function "swap8" not found.
|
||||
// DeclarationError 4619: (114-119='swap9'): Function "swap9" not found.
|
||||
// DeclarationError 4619: (126-132='swap10'): Function "swap10" not found.
|
||||
// DeclarationError 4619: (139-145='swap11'): Function "swap11" not found.
|
||||
// DeclarationError 4619: (152-158='swap12'): Function "swap12" not found.
|
||||
// DeclarationError 4619: (165-171='swap13'): Function "swap13" not found.
|
||||
// DeclarationError 4619: (178-184='swap14'): Function "swap14" not found.
|
||||
// DeclarationError 4619: (191-197='swap15'): Function "swap15" not found.
|
||||
// DeclarationError 4619: (204-210='swap16'): Function "swap16" not found.
|
||||
// DeclarationError 4619: (217-223='swap32'): Function "swap32" not found.
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
// underflow
|
||||
}
|
||||
// ----
|
||||
// ParserError 1465: (19-32): Illegal token: Unicode direction override underflow in comment or string literal.
|
||||
// ParserError 1465: (19-32='// underflow'): Illegal token: Unicode direction override underflow in comment or string literal.
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
let s := unicode"underflow ‬";
|
||||
}
|
||||
// ----
|
||||
// ParserError 1465: (35-47): Illegal token: Invalid character in string.
|
||||
// ParserError 1465: (35-47='"underflow â'): Illegal token: Invalid character in string.
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
// ====
|
||||
// dialect: evm
|
||||
// ----
|
||||
// TypeError 1844: (21-26): The "verbatim_*" builtins cannot be used with empty bytecode.
|
||||
// TypeError 1844: (21-26='hex""'): The "verbatim_*" builtins cannot be used with empty bytecode.
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
let x := verbatim_01i_1o(hex"aa", 0)
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4619: (15-30): Function "verbatim_01i_1o" not found.
|
||||
// DeclarationError 4619: (15-30='verbatim_01i_1o'): Function "verbatim_01i_1o" not found.
|
||||
// DeclarationError 3812: (6-42): Variable count mismatch for declaration of "x": 1 variables and 0 values.
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
let verbatim_1i_2o := 3
|
||||
}
|
||||
// ----
|
||||
// ParserError 5568: (32-46): Cannot use builtin function name "verbatim_1i_2o" as identifier name.
|
||||
// ParserError 5568: (32-46='verbatim_1i_2o'): Cannot use builtin function name "verbatim_1i_2o" as identifier name.
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
function verbatim_fun() {}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 5017: (10-18): The identifier "verbatim" is reserved and can not be used.
|
||||
// DeclarationError 5017: (32-44): The identifier "verbatim_abc" is reserved and can not be used.
|
||||
// DeclarationError 5017: (54-80): The identifier "verbatim_fun" is reserved and can not be used.
|
||||
// DeclarationError 5017: (10-18='verbatim'): The identifier "verbatim" is reserved and can not be used.
|
||||
// DeclarationError 5017: (32-44='verbatim_abc'): The identifier "verbatim_abc" is reserved and can not be used.
|
||||
// DeclarationError 5017: (54-80='function verbatim_fun() {}'): The identifier "verbatim_fun" is reserved and can not be used.
|
||||
|
||||
Reference in New Issue
Block a user