summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-07 13:50:53 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-07 13:50:53 -0400
commitfaee855b1e886dacc999e1dccf7f8e2c750f33c6 (patch)
tree39a45954661114f6bc19227663a490d99c7ddb48 /tests.sh
parenta1c8bda52a9c07d32127762ee0c865660a0268ab (diff)
downloadbfs-faee855b1e886dacc999e1dccf7f8e2c750f33c6.tar.xz
opt: Make sure facts_when_impure sees *all* impure literals
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index df92a8e..c84907c 100755
--- a/tests.sh
+++ b/tests.sh
@@ -657,10 +657,11 @@ bfs_tests=(
test_L_unique_depth
test_xtype_multi
- test_xtype_reorder
# Optimizer tests
test_data_flow_hidden
+ test_xtype_reorder
+ test_xtype_depth
# PATH_MAX handling
test_deep_strict
@@ -1323,6 +1324,11 @@ function test_xtype_reorder() {
invoke_bfs loops -links 100 -xtype l
}
+function test_xtype_depth() {
+ # Make sure -xtype is considered side-effecting for facts_when_impure
+ ! invoke_bfs loops -xtype l -depth 100 2>/dev/null
+}
+
function test_iname() {
bfs_diff basic -iname '*F*'
}