about summary refs log tree commit diff stats
path: root/038new_text.cc
diff options
context:
space:
mode:
Diffstat (limited to '038new_text.cc')
-rw-r--r--038new_text.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/038new_text.cc b/038new_text.cc
index 2bda16cf..493c1b50 100644
--- a/038new_text.cc
+++ b/038new_text.cc
@@ -62,6 +62,15 @@ int new_mu_text(const string& contents) {
   return result;
 }
 
+//: a new kind of typo
+
+:(scenario string_literal_without_instruction)
+% Hide_errors = true;
+def main [
+  [abc]
+]
++error: main: instruction '[abc]' has no recipe
+
 //: stash recognizes strings
 
 :(scenario stash_string)