X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/8a6cb2cbf33b292e9c5c2689417fb9f525f67df2..87e05d1a4c512d5f08d9963b13e202483e002366:/t/lib/warnings/doop diff --git a/t/lib/warnings/doop b/t/lib/warnings/doop index 5803b44..bcc85a3 100644 --- a/t/lib/warnings/doop +++ b/t/lib/warnings/doop @@ -1,6 +1,37 @@ +__END__ # doop.c use utf8 ; $_ = "\x80 \xff" ; chop ; EXPECT ######## +# NAME deprecation of logical bit operations with above ff code points +$_ = "\xFF" & "\x{100}"; # Above ff second +$_ = "\xFF" | "\x{101}"; +$_ = "\xFF" ^ "\x{102}"; +$_ = "\x{100}" & "\x{FF}"; # Above ff first +$_ = "\x{101}" | "\x{FF}"; +$_ = "\x{102}" ^ "\x{FF}"; +$_ = "\x{100}" & "\x{103}"; # both above ff has just one message raised +$_ = "\x{101}" | "\x{104}"; +$_ = "\x{102}" ^ "\x{105}"; +no warnings 'deprecated'; +$_ = "\xFF" & "\x{100}"; +$_ = "\xFF" | "\x{101}"; +$_ = "\xFF" ^ "\x{101}"; +$_ = "\x{100}" & "\x{FF}"; +$_ = "\x{101}" | "\x{FF}"; +$_ = "\x{102}" ^ "\x{FF}"; +$_ = "\x{100}" & "\x{103}"; +$_ = "\x{101}" | "\x{104}"; +$_ = "\x{102}" ^ "\x{105}"; +EXPECT +Use of strings with code points over 0xFF as arguments to bitwise and (&) operator is deprecated at - line 1. +Use of strings with code points over 0xFF as arguments to bitwise or (|) operator is deprecated at - line 2. +Use of strings with code points over 0xFF as arguments to bitwise xor (^) operator is deprecated at - line 3. +Use of strings with code points over 0xFF as arguments to bitwise and (&) operator is deprecated at - line 4. +Use of strings with code points over 0xFF as arguments to bitwise or (|) operator is deprecated at - line 5. +Use of strings with code points over 0xFF as arguments to bitwise xor (^) operator is deprecated at - line 6. +Use of strings with code points over 0xFF as arguments to bitwise and (&) operator is deprecated at - line 7. +Use of strings with code points over 0xFF as arguments to bitwise or (|) operator is deprecated at - line 8. +Use of strings with code points over 0xFF as arguments to bitwise xor (^) operator is deprecated at - line 9.