Last active
August 29, 2015 14:13
-
-
Save dolmen/2177bb48658504956a99 to your computer and use it in GitHub Desktop.
Test::Builder compatibility breakage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Test::More tests => 1; | |
use B; | |
my $x = \(my $y); | |
# In newer TB, the reference to note's argument is kept and breaks the following test | |
note $x; | |
is(B::svref_2object($x)->REFCNT, 2, "refcnt=2"); | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment