#!/usr/bin/perl

# Copyright 2019-2024, Paul Johnson (paul@pjcj.net)

# This software is free.  It is licensed under the same terms as Perl itself.

# The latest version of this software should be available from my homepage:
# http://www.pjcj.net

# __COVER__ skip_test $] < 5.032
# __COVER__ skip_reason Too fagile below 5.32

use 5.20.0;
use warnings;
use experimental "signatures";

sub xx ($p, $q, $r, $s = 6, @t) {
    $p + $q + $r + $s + @t
}

my $x = xx(3, 4, 5);
die unless $x == 18;
