CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 27 Jul 2025 05:18:13 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20220126203504
location: https://web.archive.org/web/20220126203504/https://perl5.git.perl.org/perl5.git/commitdiff
server-timing: captures_list;dur=0.455745, exclusion.robots;dur=0.016103, exclusion.robots.policy;dur=0.008985, esindex;dur=0.009572, cdx.remote;dur=35.609042, LoadShardBlock;dur=359.149946, PetaboxLoader3.datanode;dur=81.135115, PetaboxLoader3.resolve;dur=101.553522
x-app-server: wwwb-app223
x-ts: 302
x-tr: 420
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app223; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 27 Jul 2025 05:18:14 GMT
content-type: application/xhtml+xml; charset=utf-8
x-archive-orig-date: Wed, 26 Jan 2022 20:35:04 GMT
x-archive-orig-server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
x-archive-orig-keep-alive: timeout=5, max=100
x-archive-orig-connection: Keep-Alive
x-archive-orig-x-crawler-transfer-encoding: chunked
x-archive-orig-content-length: 16929
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: iso-8859-1
memento-datetime: Wed, 26 Jan 2022 20:35:04 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 25 Jan 2021 07:38:48 GMT", ; rel="prev memento"; datetime="Mon, 25 Jan 2021 07:38:48 GMT", ; rel="memento"; datetime="Wed, 26 Jan 2022 20:35:04 GMT", ; rel="next memento"; datetime="Tue, 31 Jan 2023 19:54:32 GMT", ; rel="last memento"; datetime="Tue, 31 Jan 2023 19:54:32 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: CC-MAIN-2022-05-1642320304961.89-0014/CC-MAIN-20220126192506-20220126222506-00295.warc.gz
server-timing: captures_list;dur=0.549356, exclusion.robots;dur=0.021309, exclusion.robots.policy;dur=0.010669, esindex;dur=0.012919, cdx.remote;dur=12.380300, LoadShardBlock;dur=88.014357, PetaboxLoader3.datanode;dur=98.083945, load_resource;dur=325.875711, PetaboxLoader3.resolve;dur=212.185780
x-app-server: wwwb-app223
x-ts: 200
x-tr: 492
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
perl5.git.perl.org Git - perl5.git/commitdiff
This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 929db50)
raw | patch | inline | side by side (parent: 929db50)
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | |
Sat, 22 Jan 2022 18:28:14 +0000 (18:28 +0000) | ||
committer | Paul Evans <leonerd@leonerd.org.uk> | |
Tue, 25 Jan 2022 15:02:58 +0000 (15:02 +0000) |
MANIFEST | patch | blob | blame | history | |
t/lib/warnings/builtin | [new file with mode: 0644] | patch | blob |
diff --git a/MANIFEST b/MANIFEST
--- a/MANIFEST
+++ b/MANIFEST
t/lib/warnings/9enabled Tests warnings
t/lib/warnings/9uninit Tests "Use of uninitialized" warnings
t/lib/warnings/av Tests for av.c for warnings.t
+t/lib/warnings/builtin Tests for builtin.c for warnings.t
t/lib/warnings/doio Tests for doio.c for warnings.t
t/lib/warnings/gv Tests for gv.c for warnings.t
t/lib/warnings/hv Tests for hv.c for warnings.t
diff --git a/t/lib/warnings/builtin b/t/lib/warnings/builtin
--- /dev/null
+++ b/t/lib/warnings/builtin
@@ -0,0 +1,109 @@
+ builtin.c experimental warnings from builtin functions
+
+__END__
+# builtin.c - booleans
+use strict;
+use warnings qw(all -void);
+use builtin qw(isbool true false);
+my ($isbool, $true, $false) = (\&isbool, \&true, \&false);
+isbool(0);
+true;
+false;
+&isbool(0);
+&true;
+&false;
+$isbool->(0);
+$true->();
+$false->();
+no warnings 'experimental::builtin';
+isbool(0);
+true;
+false;
+&isbool(0);
+&true;
+&false;
+$isbool->(0);
+$true->();
+$false->();
+EXPECT
+Built-in function 'builtin::isbool' is experimental at - line 6.
+Built-in function 'builtin::true' is experimental at - line 7.
+Built-in function 'builtin::false' is experimental at - line 8.
+Built-in function 'builtin::isbool' is experimental at - line 9.
+Built-in function 'builtin::true' is experimental at - line 10.
+Built-in function 'builtin::false' is experimental at - line 11.
+Built-in function 'builtin::isbool' is experimental at - line 12.
+Built-in function 'builtin::true' is experimental at - line 13.
+Built-in function 'builtin::false' is experimental at - line 14.
+########
+# builtin.c - weakrefs
+use strict;
+use warnings qw(all -void);
+use builtin qw(weaken unweaken isweak);
+my ($isweak, $weaken, $unweaken) = (\&weaken, \&unweaken, \&isweak);
+my $ref = [];
+isweak($ref);
+weaken($ref);
+unweaken($ref);
+&isweak($ref);
+&weaken($ref);
+&unweaken($ref);
+$isweak->($ref);
+$weaken->($ref);
+$unweaken->($ref);
+no warnings 'experimental::builtin';
+isweak($ref);
+weaken($ref);
+unweaken($ref);
+&isweak($ref);
+&weaken($ref);
+&unweaken($ref);
+$isweak->($ref);
+$weaken->($ref);
+$unweaken->($ref);
+EXPECT
+Built-in function 'builtin::isweak' is experimental at - line 7.
+Built-in function 'builtin::weaken' is experimental at - line 8.
+Built-in function 'builtin::unweaken' is experimental at - line 9.
+Built-in function 'builtin::isweak' is experimental at - line 10.
+Built-in function 'builtin::weaken' is experimental at - line 11.
+Built-in function 'builtin::unweaken' is experimental at - line 12.
+Built-in function 'builtin::weaken' is experimental at - line 13.
+Built-in function 'builtin::unweaken' is experimental at - line 14.
+Built-in function 'builtin::isweak' is experimental at - line 15.
+########
+# builtin.c - blessed refs
+use strict;
+use warnings qw(all -void);
+use builtin qw(blessed refaddr reftype);
+my ($reftype, $blessed, $refaddr) = (\&blessed, \&refaddr, \&reftype);
+my $ref = [];
+blessed($ref);
+refaddr($ref);
+reftype($ref);
+&blessed($ref);
+&refaddr($ref);
+&reftype($ref);
+$blessed->($ref);
+$refaddr->($ref);
+$reftype->($ref);
+no warnings 'experimental::builtin';
+blessed($ref);
+refaddr($ref);
+reftype($ref);
+&blessed($ref);
+&refaddr($ref);
+&reftype($ref);
+$blessed->($ref);
+$refaddr->($ref);
+$reftype->($ref);
+EXPECT
+Built-in function 'builtin::blessed' is experimental at - line 7.
+Built-in function 'builtin::refaddr' is experimental at - line 8.
+Built-in function 'builtin::reftype' is experimental at - line 9.
+Built-in function 'builtin::blessed' is experimental at - line 10.
+Built-in function 'builtin::refaddr' is experimental at - line 11.
+Built-in function 'builtin::reftype' is experimental at - line 12.
+Built-in function 'builtin::refaddr' is experimental at - line 13.
+Built-in function 'builtin::reftype' is experimental at - line 14.
+Built-in function 'builtin::blessed' is experimental at - line 15.