summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2018-08-28 14:11:10 +1000
committerTony Cook <tony@develop-help.com>2019-01-03 15:22:13 +1100
commit817480137a8b1165315f21d14b8968862101c3a2 (patch)
treee58c6879e89ada90f7d70159a9ac943af80c4f5f /t
parent91d140d32797985c6160836671a1db4ae003e563 (diff)
downloadperl-817480137a8b1165315f21d14b8968862101c3a2.tar.gz
(perl #132158) abort compilation if we see an error compiling a form
Diffstat (limited to 't')
-rw-r--r--t/lib/croak/toke9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/lib/croak/toke b/t/lib/croak/toke
index 59c377ba6b..21851229fe 100644
--- a/t/lib/croak/toke
+++ b/t/lib/croak/toke
@@ -493,3 +493,12 @@ sub t1 {}
sub t2 (}
EXPECT
Prototype not terminated at - line 2.
+########
+# NAME [perl #132158] format with syntax errors
+format=
+@
+=h
+=cut
+EXPECT
+syntax error at - line 4, next token ???
+Execution of - aborted due to compilation errors.