| /openbsd-src/gnu/usr.bin/perl/lib/ |
| H A D | overloading.t | 11 use overload ( 15 cos => sub { "far side of overload table" }, 28 is( cos($x), "far side of overload table", "cosinusfies" ); 32 is( "$x", overload::StrVal($x), "no stringification" ); 33 is( "$y", overload::StrVal($y), "no stringification of qr//" ); 39 is( "$x", overload::StrVal($x), "no stringification" ); 40 is( "$y", overload::StrVal($y), "no stringification of qr//" ); 49 is( "$x", overload::StrVal($x), "no stringification" ); 50 is( "$y", overload::StrVal($y), "no stringification of qr//" ); 52 is( cos($x), "far side of overload table", "cosinusfies" ); [all …]
|
| H A D | overload.t | 37 use overload ( 120 eval q[ package Oscalar; use overload ('++' => sub { $ {$_[0]}++;$_[0] } ) ]; 147 eval q[package Oscalar; use overload ('++' => sub { $ {$_[0]} += 2; $_[0] } ) ]; 182 eval q[ package Oscalar; use overload ('=' => sub {$main::copies++; 228 eval q[package Oscalar; use overload ('+=' => sub {$ {$_[0]} += 3*$_[1]; 265 use overload ('x' => sub {new Oscalar ( $_[2] ? "_.$_[1]._" x $ {$_[0]} 273 use overload ('.' => sub {new Oscalar ( $_[2] ? 293 # Here we test that both "no overload" and 296 eval "package Oscalar; no overload '.'"; 316 eval "package Oscalar; sub comple; use overload '~' [all...] |
| H A D | overloading.pm | 13 map { exists $overload::numbers::names{"($_"} 14 ? $overload::numbers::names{"($_"}
|
| H A D | overload64.t | 22 use overload '0+' => sub { ${$_[0]} += 1; $ii }, 89 use overload '0+' => sub { ${$_[0]} += 1; -$ii }, 135 use overload 221 use overload '0+' => sub { $_[0][0] }, fallback => 1;
|
| /openbsd-src/usr.sbin/dhcpd/ |
| H A D | options.c | 275 int overload, /* Overload flags that may be set. */ in cons_options() argument 316 if (overload & 1) in cons_options() 318 if (overload & 2) in cons_options() 321 overload = 0; /* Don't use overload buffers for bootp! */ in cons_options() 345 priority_list, overload, terminate); in cons_options() 356 if (overload & 1) { in cons_options() 360 if (overload & 2) in cons_options() 399 struct tree_cache **options, unsigned char *priority_list, int overload, in store_options() argument 407 overload &= 3; /* Only consider valid bits. */ in store_options() 410 second_cutoff = cutoff + ((overload & 1) ? DHCP_FILE_LEN : 0); in store_options() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/t/re/ |
| H A D | overload.t | 18 use overload '""' => sub {$TAG}; 42 use overload q{""} => sub { 65 overload::constant qr => sub { 80 use overload q{""} => sub { 92 use overload q{""} => sub { 104 use overload q{""} => sub { 212 use overload 'qr' => sub { return qr/a/ }; 232 use overload 247 overload::constant qr => sub { bless [ $_[0] ], 'OL_MOD' };
|
| /openbsd-src/gnu/usr.bin/perl/t/lib/ |
| H A D | overload_fallback.t | 11 use overload '""' => sub { 'stringvalue' }, fallback => 1; 20 use overload '+' => sub { die "unused"; }; 28 use overload 42 use overload '${}', 'fallback'; 43 no overload '${}', 'fallback'; 46 ok($warned == 0, 'no overload should not warn');
|
| /openbsd-src/gnu/usr.bin/perl/dist/Carp/t/ |
| H A D | vivify_stash.t | 17 # Autovivify $::{"overload::"} 18 () = \$::{"overload::"}; 23 # overload:: glob without hash 24 # Clear overload quoted so it happens to the runtime stash. 25 { no strict 'refs'; undef *{"overload::"} }
|
| H A D | Carp_overloadless.t | 8 # test that enabling overload without loading overload.pm does not trigger infinite recursion
|
| H A D | Carp_overload.t | 16 "Stringable object not overload stringified"); 52 use overload 73 "TRACE:" . $self; # use string overload
|
| H A D | vivify_gv.t | 6 our $has_strval; BEGIN { $has_strval = exists($overload::{"StrVal"}); } 15 print !(exists($overload::{"StrVal"}) xor $has_sv2obj) ? "" : "not ", "ok 4\n";
|
| /openbsd-src/gnu/usr.bin/perl/cpan/JSON-PP/t/ |
| H A D | 113_overloaded_eq.t | 31 use overload ( 45 use overload ( 52 return overload::StrVal($_[0]); 58 use overload 'eq' => sub { $_[0]->{v} eq $_[1] }, '""' => sub { $_[0]->{v} }, fallback => 1;
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | concat2.t | 18 { package o; use overload '""' => sub { $_[0][0] } } 31 use overload '.' => sub { push @a, \$_[1]; $_[0] }; 53 use overload q[""] => sub { ::canonpath("tmp") };
|
| H A D | overload_integer.t | 16 use overload; 20 overload::constant 'integer' => sub { return shift };
|
| H A D | hexfp.t | 283 use overload; 284 BEGIN { overload::constant float => sub { return eval $_[0]; }; } 289 use overload; 290 BEGIN { overload::constant float => sub { return eval $_[0]; }; }
|
| H A D | filetest.t | 168 use overload 180 use overload q/""/ => sub { $over = 1; "TEST" }; 185 use overload 194 use overload
|
| /openbsd-src/gnu/usr.bin/perl/t/lib/croak/ |
| H A D | toke | 205 use overload; 206 BEGIN { overload::constant integer => sub {}; undef *^H } 213 use overload; 214 BEGIN { overload::constant float => sub {}; undef *^H } 221 use overload; 222 BEGIN { overload::constant binary => sub {}; undef *^H } 229 use overload; 230 BEGIN { overload::constant q => sub {}; undef *^H } 240 use overload; 241 BEGIN { overload [all...] |
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | overload.inc | 3 * overload.inc 12 * This file is built by regen/overload.pl. 102 overload.pm. */
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/ |
| H A D | uniq.t | 142 use overload '""' => sub { return $_[0]->{str} }; 160 use overload '""' => sub { "1" . ( "0"x100 ) }, 176 use overload '""' => sub { "SAME" };
|
| H A D | sum.t | 44 use overload 69 use overload
|
| /openbsd-src/regress/sbin/pfctl/ |
| H A D | pf89.in | 21 (max-src-conn 100, max-src-conn-rate 10/5, overload <bad> flush) 24 (max-src-conn 1000, max-src-conn-rate 1000/5, overload <bad> \
|
| H A D | pf89.ok | 10 …ate state (source-track rule, max-src-conn 100, max-src-conn-rate 10/5, overload <bad> flush, src.… 11 … state (source-track rule, max-src-conn 1000, max-src-conn-rate 1000/5, overload <bad> flush globa…
|
| /openbsd-src/gnu/usr.bin/perl/dist/Storable/t/ |
| H A D | overload.t | 27 use overload 59 use overload
|
| /openbsd-src/gnu/gcc/gcc/config/sh/ |
| H A D | symbian.c | 453 tree overload; in sh_symbian_handle_dll_attribute() local 455 for (overload = OVL_CHAIN (node); overload; overload = OVL_CHAIN (overload)) in sh_symbian_handle_dll_attribute() 459 tree function = OVL_CURRENT (overload); in sh_symbian_handle_dll_attribute()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/ |
| H A D | README | 17 overload Tests for overload resolution and conversions.
|