mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds test for empty contract w/ error recovery.
This commit is contained in:
parent
c084f6462d
commit
0620936506
1
test/cmdlineTests/recovery_ast_empty_contract/args
Normal file
1
test/cmdlineTests/recovery_ast_empty_contract/args
Normal file
@ -0,0 +1 @@
|
|||||||
|
--error-recovery
|
8
test/cmdlineTests/recovery_ast_empty_contract/err
Normal file
8
test/cmdlineTests/recovery_ast_empty_contract/err
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Error: Expected pragma, import directive or contract/interface/library/struct/enum definition.
|
||||||
|
--> recovery_ast_empty_contract/input.sol:2:1:
|
||||||
|
|
|
||||||
|
2 | c
|
||||||
|
| ^
|
||||||
|
|
||||||
|
|
||||||
|
Compilation halted after AST generation due to errors.
|
2
test/cmdlineTests/recovery_ast_empty_contract/input.sol
Normal file
2
test/cmdlineTests/recovery_ast_empty_contract/input.sol
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pragma 0.5.11;
|
||||||
|
c
|
Loading…
Reference in New Issue
Block a user