summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGerard Goossen <gerard@ggoossen.net>2010-12-21 14:08:28 +0100
committerZefram <zefram@fysh.org>2011-01-08 13:38:39 +0000
commit09219716c0ac19d35190306a6cfa5fdbbde0c2cb (patch)
tree247800d41b5c412ba4344b0941c8d108e2ce11fd /t
parent5a909b52c3c34749a76f76e5a103db6b13304f29 (diff)
downloadperl-09219716c0ac19d35190306a6cfa5fdbbde0c2cb.tar.gz
test append to SV initialized by folded constant
Diffstat (limited to 't')
-rw-r--r--t/op/concat.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/concat.t b/t/op/concat.t
index ff163491b0..e2e2c667dc 100644
--- a/t/op/concat.t
+++ b/t/op/concat.t
@@ -18,7 +18,7 @@ sub ok {
return $ok;
}
-print "1..29\n";
+print "1..30\n";
($a, $b, $c) = qw(foo bar);
@@ -152,3 +152,10 @@ sub beq { use bytes; $_[0] eq $_[1]; }
my $x = eval"qr/\x{fff}/";
ok( ord chop($x .= "\303\277") == 191, "UTF8ness preserved" );
}
+
+{
+ my $x;
+ $x = "a" . "b";
+ $x .= "-append-";
+ ok($x eq "ab-append-", "Appending to something initialized using constant folding");
+}