12 # These should actually call the sub, instead of testing the sub itself
13 ok !defined do { ¬def }, 'defined do { &sub }';
14 ok !defined(scalar(42,¬def)), 'defined(scalar(42,&sub))';
15 ok !defined do{();¬def}, '!defined do{();&sub}';
17 # Likewise, these should evaluate @array in scalar context
18 no warnings "deprecated";
19 ok defined($false ? $scalar : @array), 'defined( ... ? ... : @array)';
20 ok defined(scalar @array), 'defined(scalar @array)';