| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More tests => 4; |
| 4 | |
| 5 | use B::Compiling; |
| 6 | |
| 7 | BEGIN { |
| 8 | ok(defined &PL_compiling, 'PL_compiling gets exported'); |
| 9 | |
| 10 | my $cop = PL_compiling; |
| 11 | ok($cop = PL_compiling, 'returns the same reference every time'); |
| 12 | |
| 13 | isa_ok($cop, 'B::COP'); |
| 14 | like($cop->file, qr{t/basic.t$}, 'basic sanity'); |
| 15 | } |