summaryrefslogtreecommitdiff
path: root/t/lib/caller/Foo.pm
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/caller/Foo.pm')
-rw-r--r--t/lib/caller/Foo.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/lib/caller/Foo.pm b/t/lib/caller/Foo.pm
new file mode 100644
index 0000000000..1af25470c6
--- /dev/null
+++ b/t/lib/caller/Foo.pm
@@ -0,0 +1,9 @@
+# for use by caller.t for GH #15109
+
+package Foo;
+
+sub import {
+ use warnings; # restore default warnings
+ () = caller(1); # this used to cause valgrind errors
+}
+1;