Adds test for empty contract w/ error recovery.

This commit is contained in:
Erik Kundt 2019-12-11 12:46:20 +01:00
parent c084f6462d
commit 0620936506
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
--error-recovery

View 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.

View File

@ -0,0 +1,2 @@
pragma 0.5.11;
c