1# Tests for a segfault bug in PDL through 2.4.2
2# (Thanks, Alexey!)
3
4use Test::More tests => 1;
5use Test::Exception;
6
7use PDL;
8use strict;
9use warnings;
10
11my $x = pdl(1,2);
12my $y = bless \my $z,"ASFG";
13throws_ok {
14 $x != $y
15} qr/Error - tried to use an unknown/;
16