summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-21 01:38:27 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-21 01:38:27 -0400
commit10a4394ca53c09f45a8559a87ed7c4f4d18aa1ed (patch)
tree256e5e07a6a86e2deac2fa73c7616cc3e21c1ba0
parentca4b8625890142ce43b3b4eaa36f58c28263df56 (diff)
downloadparse-keyword-10a4394ca53c09f45a8559a87ed7c4f4d18aa1ed.tar.gz
parse-keyword-10a4394ca53c09f45a8559a87ed7c4f4d18aa1ed.zip
make this test trigger the segfault
-rw-r--r--t/basic.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/basic.t b/t/basic.t
index 8171972..565970a 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -31,8 +31,7 @@ use Test::More;
}
baz {
- my $foo = 1;
- return $foo + 2;
+ 1 + 2
}
::is(ref($code), 'CODE');
::is($code->(), 3);