summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/dist/Carp/t/broken_can.t
blob: c32fa1909df517fb8275cd172b893d3ed411aac8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test::More tests => 1;

# [perl #132910]

package Foo;
sub can { die }

package main;

use Carp;

eval {
    sub { confess-sins }->(bless[], Foo);
};
like $@, qr/^-sins at /;