From b1a999892b9e13181ddd9a7d895f3d1c65fbb449 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 17 Sep 2024 12:18:04 -0400 Subject: 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") --- tests/gnu/not_comma.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/gnu/not_comma.sh (limited to 'tests/gnu/not_comma.sh') 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 -- cgit v1.2.3