prepare for 0.06 release
[p5sagit/Sub-Name.git] / t / RT96893_perlcc.t
CommitLineData
24f50a79 1use strict;
2use warnings;
3
4eval "use B::C;";
5if ($@) {
6 print "1..0 #SKIP B::C required for testing perlcc -O3\n";
7 exit;
8} else {
9 print "1..1\n";
10}
11
12my $f = "t/rt96893x.pl";
13open my $fh, ">", $f; END { unlink $f }
14print $fh 'use Sub::Name; subname("main::bar", sub{42}); print "ok 1\n";';
15close $fh;
16
17system($^X, qw(-Mblib -S perlcc -O3 -UCarp -UConfig -r), $f);
18
19unlink "t/rt96893x", "t/rt96893x.exe";
20# vim: ft=perl