]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-good.t
Test 'print' that segfaults
[perl/modules/indirect.git] / t / 10-good.t
index 0132f45ec4ac6ea96569815a5c843706ac071c22..388f8a049d5bc915a27a8bbd67fbf5e3f8abcdf5 100644 (file)
@@ -9,9 +9,9 @@ package main;
 use strict;
 use warnings;
 
-use Test::More tests => 36 * 4;
+use Test::More tests => 41 * 4;
 
-my ($obj, $pkg, $cb, $x);
+my ($obj, $pkg, $cb, $x, @a);
 sub meh;
 
 {
@@ -133,6 +133,8 @@ meh $x;
 ####
 meh $x, 1 , 2;
 ####
+print;
+####
 print STDOUT "bananananananana\n";
 ####
 print $x "oh hai\n";
@@ -144,3 +146,11 @@ $obj = "apple ${\(new Hlagh)} pear"
 $obj = "apple @{[new Hlagh]} pear"
 ####
 s/dongs/new Hlagh/e;
+####
+exec $x $x, @a;
+####
+exec { $a[0] } @a;
+####
+system $x $x, @a;
+####
+system { $a[0] } @a;