summaryrefslogtreecommitdiff
path: root/t/pragma/warn/2use
diff options
context:
space:
mode:
Diffstat (limited to 't/pragma/warn/2use')
-rw-r--r--t/pragma/warn/2use4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/pragma/warn/2use b/t/pragma/warn/2use
index 396f20142c..60a60c313c 100644
--- a/t/pragma/warn/2use
+++ b/t/pragma/warn/2use
@@ -5,9 +5,11 @@ TODO
__END__
-# ignore unknown warning categories
+# check illegal category is caught
use warnings 'this-should-never-be-a-warning-category' ;
EXPECT
+unknown warnings category 'this-should-never-be-a-warning-category' at - line 3
+BEGIN failed--compilation aborted at - line 3.
########
# Check compile time scope of pragma