CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 26 Jul 2025 09:20:53 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.533764, exclusion.robots;dur=0.022916, exclusion.robots.policy;dur=0.013873, esindex;dur=0.009121, cdx.remote;dur=490.466069, LoadShardBlock;dur=268.279064, PetaboxLoader3.datanode;dur=56.203178
x-app-server: wwwb-app200
x-ts: 302
x-tr: 788
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app200; 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: Sat, 26 Jul 2025 09:20:54 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.505278, exclusion.robots;dur=0.025110, exclusion.robots.policy;dur=0.015292, esindex;dur=0.009336, cdx.remote;dur=9.059864, LoadShardBlock;dur=120.760720, PetaboxLoader3.datanode;dur=75.953949, PetaboxLoader3.resolve;dur=116.248631, load_resource;dur=118.232332
x-app-server: wwwb-app200
x-ts: 200
x-tr: 300
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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.