import some (modified) MS tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / lib / BarfyDie.pm
diff --git a/t/foreign/Method-Signatures/lib/BarfyDie.pm b/t/foreign/Method-Signatures/lib/BarfyDie.pm
new file mode 100644 (file)
index 0000000..3648068
--- /dev/null
@@ -0,0 +1,21 @@
+# For use with t/error_interruption.t
+
+package BarfyDie;
+
+use strict;
+use warnings;
+
+use Function::Parameters qw(:strict);
+
+
+# This _should_ produce a simple error like the following:
+# Global symbol "$foo" requires explicit package name at t/lib/BarfyDie.pm line 13.
+$foo = 'hi!';
+
+
+method foo ($bar)
+{
+}
+
+
+1;