diff options
author | Brian Fraser <fraserbn@gmail.com> | 2011-07-07 06:09:12 -0300 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-10-06 13:01:16 -0700 |
commit | 3b46b707952f27567b821808ac47693235133ec7 (patch) | |
tree | d4d4054b1e230843861c1281c5535a223505b613 /t | |
parent | 012bcf7ee71d9243e96ea90a524935f149012c6a (diff) | |
download | perl-3b46b707952f27567b821808ac47693235133ec7.tar.gz |
util.c UTF8 cleanup
Diffstat (limited to 't')
-rw-r--r-- | t/lib/warnings/util | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/t/lib/warnings/util b/t/lib/warnings/util index e632d09e0d..618cf75acc 100644 --- a/t/lib/warnings/util +++ b/t/lib/warnings/util @@ -156,3 +156,123 @@ if ($x) { EXPECT Name "main::y" used only once: possible typo at - line 8. Use of uninitialized value $y in print at - line 8. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +$ㄒ = 1; +if ($ㄒ) { + print $ʎ; +} +EXPECT +Name "main::ʎ" used only once: possible typo at - line 7. +Use of uninitialized value $ʎ in print at - line 7. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +$ㄒ = 1; +if ($ㄒ) { + $ㄒ++; + print $ʎ; +} +EXPECT +Name "main::ʎ" used only once: possible typo at - line 8. +Use of uninitialized value $ʎ in print at - line 8. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +$ㄒ = 0; +if ($ㄒ) { + print "1\n"; +} elsif (!$ㄒ) { + print $ʎ; +} else { + print "0\n"; +} +EXPECT +Name "main::ʎ" used only once: possible typo at - line 9. +Use of uninitialized value $ʎ in print at - line 9. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +$ㄒ = 0; +if ($ㄒ) { + print "1\n"; +} elsif (!$ㄒ) { + $ㄒ++; + print $ʎ; +} else { + print "0\n"; +} +EXPECT +Name "main::ʎ" used only once: possible typo at - line 10. +Use of uninitialized value $ʎ in print at - line 10. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +package 팣칵ぇ; +$ㄒ = 1; +if ($ㄒ) { + print $ʎ; +} +EXPECT +Name "팣칵ぇ::ʎ" used only once: possible typo at - line 8. +Use of uninitialized value $팣칵ぇ::ʎ in print at - line 8. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +package 팣칵ぇ; +$ㄒ = 1; +if ($ㄒ) { + $ㄒ++; + print $ʎ; +} +EXPECT +Name "팣칵ぇ::ʎ" used only once: possible typo at - line 9. +Use of uninitialized value $팣칵ぇ::ʎ in print at - line 9. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +package 팣칵ぇ; +$ㄒ = 0; +if ($ㄒ) { + print "1\n"; +} elsif (!$ㄒ) { + print $ʎ; +} else { + print "0\n"; +} +EXPECT +Name "팣칵ぇ::ʎ" used only once: possible typo at - line 10. +Use of uninitialized value $팣칵ぇ::ʎ in print at - line 10. +######## +# util.c +use utf8; +use open qw( :utf8 :std ); +use warnings; +package 팣칵ぇ; +$ㄒ = 0; +if ($ㄒ) { + print "1\n"; +} elsif (!$ㄒ) { + $ㄒ++; + print $ʎ; +} else { + print "0\n"; +} +EXPECT +Name "팣칵ぇ::ʎ" used only once: possible typo at - line 11. +Use of uninitialized value $팣칵ぇ::ʎ in print at - line 11. |