unbalanced string table reference counts.)
p4raw-id: //depot/perl@26548
require "./test.pl";
-plan( tests => 8 );
+plan( tests => 9 );
# Used to segfault (bug #15479)
fresh_perl_is(
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 { // }; %::=""',
+ '',
+ '',
+ );
+}