]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/21-bad.t
Document and test constant folding
[perl/modules/indirect.git] / t / 21-bad.t
index 63516f562f1622f407322e62aba044ac3592b0a4..11da77d29c2fabb2f6dfa1300e1bebf8597b7de7 100644 (file)
@@ -11,8 +11,8 @@ use warnings;
 
 my ($tests, $reports);
 BEGIN {
- $tests   = 60;
- $reports = 68;
+ $tests   = 61;
+ $reports = 69;
 }
 
 use Test::More tests => 3 * (4 * $tests + $reports) + 2;
@@ -129,6 +129,10 @@ $obj = new Hlagh;
 ----
 [ 'new', 'Hlagh' ]
 ####
+$obj = new Hlagh if 0;
+----
+[ 'new', 'Hlagh' ]
+####
 $obj = new Hlagh();
 ----
 [ 'new', 'Hlagh' ]