summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/lib/croak/pp
blob: e5839525d208a61fc87a7b7aff70c66fbc231ea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
__END__
# NAME our @a->{0}
# Somewhat nonsensical, but at least it should not fail an assertion.
our @a->{0};
EXPECT
Can't use an undefined value as a HASH reference at - line 2.
########
# NAME [perl #119809] Attempt to bless into a reference (tied)
sub TIESCALAR { bless [] }
sub FETCH { [] }
tie $t, "";
bless({}, $t);
EXPECT
Attempt to bless into a reference at - line 4.
########
# NAME [perl #119809] Attempt to bless into a reference (magical)
$/ = \1;
bless [], $/
EXPECT
Attempt to bless into a reference at - line 2.
########
# NAME Attempt to bless into a reference after method changes
sub foo{} bless [], bless []
EXPECT
Attempt to bless into a reference at - line 1.