This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use diag_listed_as two suppress two diag.t failures
authorFather Chrysostomos <sprout@cpan.org>
Sun, 8 Sep 2013 21:19:34 +0000 (14:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 13 Sep 2013 08:25:35 +0000 (01:25 -0700)
pp.c

diff --git a/pp.c b/pp.c
index 2dd0fe8..cb6fe83 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -4361,6 +4361,7 @@ PP(pp_kvaslice)
        const I32 flags = is_lvalue_sub();
        if (flags) {
            if (!(flags & OPpENTERSUB_INARGS))
+               /* diag_listed_as: Can't modify %s in %s */
               Perl_croak(aTHX_ "Can't modify index/value array slice in list assignment");
           lval = flags;
        }
@@ -4808,6 +4809,7 @@ PP(pp_kvhslice)
        const I32 flags = is_lvalue_sub();
        if (flags) {
            if (!(flags & OPpENTERSUB_INARGS))
+               /* diag_listed_as: Can't modify %s in %s */
               Perl_croak(aTHX_ "Can't modify key/value hash slice in list assignment");
           lval = flags;
        }