Adds test for empty contract w/ error recovery.

This commit is contained in:
Erik Kundt
2019-12-13 15:39:10 +01:00
parent c084f6462d
commit 0620936506
3 changed files with 11 additions and 0 deletions
@@ -0,0 +1 @@
--error-recovery
@@ -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.
@@ -0,0 +1,2 @@
pragma 0.5.11;
c