require "./test.pl";
-plan( tests => 9 );
+plan( tests => 13 );
# Used to segfault (bug #15479)
fresh_perl_is(
'',
);
}
+
+# now tests in eval
+
+ok( !eval { defined %achtfaden:: }, 'works in eval{}' );
+ok( !eval q{ defined %schoenmaker:: }, 'works in eval("")' );
+
+# now tests with strictures
+
+use strict;
+ok( !defined %pig::, q(referencing a non-existent stash doesn't produce stricture errors) );
+ok( !exists $pig::{bodine}, q(referencing a non-existent stash element doesn't produce stricture errors) );