This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a test for change 26547. (We no longer expect to see errors about
authorNicholas Clark <nick@ccl4.org>
Sat, 31 Dec 2005 15:07:16 +0000 (15:07 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 31 Dec 2005 15:07:16 +0000 (15:07 +0000)
unbalanced string table reference counts.)

p4raw-id: //depot/perl@26548

t/op/stash.t

index 7441775..3d9d084 100644 (file)
@@ -7,7 +7,7 @@ BEGIN {
 
 require "./test.pl";
 
-plan( tests => 8 );
+plan( tests => 9 );
 
 # Used to segfault (bug #15479)
 fresh_perl_is(
@@ -36,3 +36,17 @@ ok( defined %{"bongo::shaftsbury::"}, q(- work with hard refs too) );
 
 package tyrone::slothrop;
 $bongo::shaftsbury::scalar = 1;
+
+package main;
+
+# Used to warn
+# Unbalanced string table refcount: (1) for "A::" during global destruction.
+# for ithreads.
+{
+    local $ENV{PERL_DESTRUCT_LEVEL} = 2;
+    fresh_perl_is(
+                 'package A; sub a { // }; %::=""',
+                 '',
+                 '',
+                 );
+}