Testsuite: variances for OpenSSL 1.1.1
[exim.git] / test / aux-fixed / 3000.pl
CommitLineData
9ba4af2b
PH
1use POSIX qw(locale_h);
2
3sub foo { "Subroutine foo called with args: @_"; }
4
5sub foo_undef { $x; }
6
7sub foo_die { die "expiring..."; }
8
9sub readvar { Exim::expand_string("\$$_[0]"); }
10
11sub return_scalar { 42; }
12
13sub return_list { (10,20,30); }
14
15sub return_variable_vector { @x = (4,5,6); @x; }
16
17sub return_hash { %x = ("a", 4, "b", 5); %x; }
18
19sub debug_write { Exim::debug_write("$_[0]"); "Wrote debug"; }
20
21sub log_write { Exim::log_write("$_[0]"); "Wrote log"; }
22
23sub change_locale { setlocale(LC_TIME, "fr_FR"); "Changed locale"; }
24
25sub foo_warn { warn "this is a warning"; "Wrote warning"; }
26
27sub no_warn { $SIG{__WARN__} = sub { }; "Discarded warnings"; }