summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-07-11 18:34:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-07-11 18:34:56 +0000
commitdef3634bd95d269e50804282110ddcc3b0e6e39b (patch)
treebb4c8c012460fb9e66e91602502d4bf2c698584a /t
parent6662521eef19f96de52b97fb5fa07a85826679ee (diff)
downloadperl-def3634bd95d269e50804282110ddcc3b0e6e39b.tar.gz
integrate cfgperl change#6250 into mainline
p4raw-link: @6250 on //depot/cfgperl: ec6a9911b75518dd4c77eb4985d8bee0371df340 p4raw-id: //depot/perl@6360 p4raw-branched: from //depot/cfgperl@6250 'branch in' t/op/my_stash.t p4raw-integrated: from //depot/cfgperl@6250 'copy in' MANIFEST (@6232..) 'merge in' toke.c (@6241..) embed.pl proto.h (@6243..)
Diffstat (limited to 't')
-rw-r--r--t/op/my_stash.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/op/my_stash.t b/t/op/my_stash.t
new file mode 100644
index 0000000000..ba266bfea2
--- /dev/null
+++ b/t/op/my_stash.t
@@ -0,0 +1,27 @@
+#!./perl
+
+package Foo;
+
+use Test;
+
+plan tests => 7;
+
+use constant MyClass => 'Foo::Bar::Biz::Baz';
+
+{
+ package Foo::Bar::Biz::Baz;
+}
+
+for (qw(Foo Foo:: MyClass __PACKAGE__)) {
+ eval "sub { my $_ \$obj = shift; }";
+ ok ! $@;
+# print $@ if $@;
+}
+
+use constant NoClass => 'Nope::Foo::Bar::Biz::Baz';
+
+for (qw(Nope Nope:: NoClass)) {
+ eval "sub { my $_ \$obj = shift; }";
+ ok $@;
+# print $@ if $@;
+}