This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test line number for (??{$str}) regexp warnings
authorFather Chrysostomos <sprout@cpan.org>
Sun, 24 Nov 2013 06:36:26 +0000 (22:36 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 24 Nov 2013 15:45:51 +0000 (07:45 -0800)
commitdd8ddecf0bb65b6799fb0f00eba6cecb12c80777
treeb65e1012575e4523da4082e6c20feaba853f6a7a
parent0ac75573be35d04f7799c8b980c842497e4cbd07
Test line number for (??{$str}) regexp warnings

If the (??{}) does not occur on the same line as the match operator
(e.g., if we have /foo$qr/ and $qr has (??{}) in it), we need to
make sure warnings that occur when the return value of (??{}) is
compiled use the same line number as the /.../, since conceptually
it is part of matching, not part of returning.

I tried breaking this and making the line number wrong, but all
tests passed, showing that it is untested.  Most regcomp tests are in
t/re/reg_mesg.t, but that file does not have infrastructure for check-
ing line numbers.
t/lib/warnings/regcomp