diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-09-17 12:18:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-09-17 12:18:04 -0400 |
commit | b1a999892b9e13181ddd9a7d895f3d1c65fbb449 (patch) | |
tree | 1b0b7fec30b0bad4e649d68f8708a1cb14c06326 /tests/gnu/not_comma.sh | |
parent | 0301397f6cf7f035f723e065eced122d78506718 (diff) | |
download | bfs-b1a999892b9e13181ddd9a7d895f3d1c65fbb449.tar.xz |
opt: Fix an invalid assertion in sink_not_comma()
When optimizing -not \( -a , -b \), the child is a comma expression, not
the parent.
Fixes: 4a36bb9 ("expr: Make expressions variadic")
Diffstat (limited to 'tests/gnu/not_comma.sh')
-rw-r--r-- | tests/gnu/not_comma.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gnu/not_comma.sh b/tests/gnu/not_comma.sh new file mode 100644 index 0000000..04c0195 --- /dev/null +++ b/tests/gnu/not_comma.sh @@ -0,0 +1,2 @@ +# Regression test: assertion failure in sink_not_comma() +bfs_diff basic -not \( -print , -name '*f*' \) -print |