summaryrefslogtreecommitdiff
path: root/t/lib/feature/nonesuch
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/feature/nonesuch')
-rw-r--r--t/lib/feature/nonesuch12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/lib/feature/nonesuch b/t/lib/feature/nonesuch
new file mode 100644
index 0000000000..1de44f621b
--- /dev/null
+++ b/t/lib/feature/nonesuch
@@ -0,0 +1,12 @@
+Test that non-existent features fail as expected.
+
+__END__
+use feature "nonesuch";
+EXPECT
+OPTIONS regex
+^Feature "nonesuch" is not supported by Perl [v0-9.]+ at - line 1
+########
+no feature "nonesuch";
+EXPECT
+OPTIONS regex
+^Feature "nonesuch" is not supported by Perl [v0-9.]+ at - line 1