diff options
-rw-r--r-- | 056recipe_header.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc index ccfe42d3..3c43fa38 100644 --- a/056recipe_header.cc +++ b/056recipe_header.cc @@ -88,6 +88,17 @@ recipe main -parse: header ingredient: local-scope +error: recipe body must begin with '[' +:(scenario recipe_handles_missing_bracket_3) +% Hide_errors = true; +recipe main # comment + local-scope + { + } +] +# doesn't overflow line when reading header +-parse: header ingredient: local-scope ++error: recipe body must begin with '[' + :(after "Begin debug_string(recipe x)") out << "ingredients:\n"; for (long long int i = 0; i < SIZE(x.ingredients); ++i) |