summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2016-10-21 15:04:39 +0200
committerLukas Mai <l.mai@web.de>2016-11-12 14:05:40 +0100
commiteb6d9f5b8b434360f8adc7a795e10ede9d05595d (patch)
treeb573d77123d9c8769f99efb1ae8e820437cf21b2 /t
parent02ced0262188511350deba28f67bc3a35ea38406 (diff)
downloadperl-eb6d9f5b8b434360f8adc7a795e10ede9d05595d.tar.gz
t/op/sub.t: add a TODO test for RT #129916
Diffstat (limited to 't')
-rw-r--r--t/op/sub.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/op/sub.t b/t/op/sub.t
index 07fa03368b..5c501b181e 100644
--- a/t/op/sub.t
+++ b/t/op/sub.t
@@ -6,7 +6,7 @@ BEGIN {
set_up_inc('../lib');
}
-plan(tests => 63);
+plan(tests => 65);
sub empty_sub {}
@@ -416,6 +416,17 @@ sub curpm {
"a" =~ /(.)/;
is(curpm(), 'c', 'return and PL_curpm');
+sub rt_129916 { 42 }
+is ref($main::{rt_129916}), 'CODE', 'simple sub stored as CV in stash (main::)';
+{
+ package RT129916;
+ sub foo { 42 }
+}
+{
+ local $TODO = "CV symbol table optimization only works in main:: [perl #129916]";
+ is ref($RT129916::{foo}), 'CODE', 'simple sub stored as CV in stash (non-main::)';
+}
+
# [perl #129090] Crashes and hangs
watchdog 10;
{ no warnings;