about summary refs log tree commit diff
path: root/t
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2020-02-05 15:47:29 +0100
committerLeah Neukirchen <chneukirchen@gmail.com>2020-05-15 18:41:13 +0200
commit064563473346b3fd7c60cc170ed406af22c7ba7a (patch)
tree368c1e0e6031cdf2ffe4239f9154786552199005 /t
parent95a9c0837bac040bb497f2ccc744f733a7886e90 (diff)
downloadmblaze-064563473346b3fd7c60cc170ed406af22c7ba7a.tar.gz
mblaze-064563473346b3fd7c60cc170ed406af22c7ba7a.tar.xz
mblaze-064563473346b3fd7c60cc170ed406af22c7ba7a.zip
t/2000-mpick.t: check for double free with bindings
Diffstat (limited to 't')
-rwxr-xr-xt/2000-mpick.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/2000-mpick.t b/t/2000-mpick.t
index 802ea83..3cff87e 100755
--- a/t/2000-mpick.t
+++ b/t/2000-mpick.t
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 cd ${0%/*}
 . ./lib.sh
-plan 26
+plan 27
 
 rm -rf test.dir
 mkdir test.dir
@@ -92,6 +92,15 @@ in
 check_test 'let expression' -eq 2 'mlist inbox | mpick ./expr | wc -l'
 
 cat <<! >expr
+let foo = from.addr == "peter@example.org"
+let bar = from.disp == "Peter Example"
+# random comment
+in
+  foo && foo
+!
+check_test 'let expression double free' -eq 2 'mlist inbox | mpick ./expr | wc -l'
+
+cat <<! >expr
 let foo =
   let bar = from.disp == "Peter Example"
   in