summaryrefslogtreecommitdiff
path: root/t/lib/warnings/gv
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-18 13:32:13 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-18 13:32:13 +0000
commit8a6cb2cbf33b292e9c5c2689417fb9f525f67df2 (patch)
treeca6a5700321e636d9ecd403d12ab4bcd927b73a9 /t/lib/warnings/gv
parenta6ec74c1448e028e8d796742c81e78fb067bf603 (diff)
downloadperl-8a6cb2cbf33b292e9c5c2689417fb9f525f67df2.tar.gz
Move the locale/strict/warnings helper files back
under the t/lib; this way the amount of non-installabled stuff under lib/ stays smaller. p4raw-id: //depot/perl@10686
Diffstat (limited to 't/lib/warnings/gv')
-rw-r--r--t/lib/warnings/gv54
1 files changed, 54 insertions, 0 deletions
diff --git a/t/lib/warnings/gv b/t/lib/warnings/gv
new file mode 100644
index 0000000000..5ed4eca018
--- /dev/null
+++ b/t/lib/warnings/gv
@@ -0,0 +1,54 @@
+ gv.c AOK
+
+ Can't locate package %s for @%s::ISA
+ @ISA = qw(Fred); joe()
+
+ Use of inherited AUTOLOAD for non-method %s::%.*s() is deprecated
+ sub Other::AUTOLOAD { 1 } sub Other::fred {}
+ @ISA = qw(Other) ;
+ fred() ;
+
+ Use of $# is deprecated
+ Use of $* is deprecated
+
+ $a = ${"#"} ;
+ $a = ${"*"} ;
+
+ Mandatory Warnings ALL TODO
+ ------------------
+
+ Had to create %s unexpectedly [gv_fetchpv]
+ Attempt to free unreferenced glob pointers [gp_free]
+
+__END__
+# gv.c
+use warnings 'misc' ;
+@ISA = qw(Fred); joe()
+EXPECT
+Can't locate package Fred for @main::ISA at - line 3.
+Undefined subroutine &main::joe called at - line 3.
+########
+# gv.c
+no warnings 'misc' ;
+@ISA = qw(Fred); joe()
+EXPECT
+Undefined subroutine &main::joe called at - line 3.
+########
+# gv.c
+sub Other::AUTOLOAD { 1 } sub Other::fred {}
+@ISA = qw(Other) ;
+use warnings 'deprecated' ;
+fred() ;
+EXPECT
+Use of inherited AUTOLOAD for non-method main::fred() is deprecated at - line 5.
+########
+# gv.c
+use warnings 'deprecated' ;
+$a = ${"#"};
+$a = ${"*"};
+no warnings 'deprecated' ;
+$a = ${"#"};
+$a = ${"*"};
+EXPECT
+Use of $# is deprecated at - line 3.
+Use of $* is deprecated at - line 4.