summaryrefslogtreecommitdiffstats
path: root/tests/gnu/not_comma.out
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-09-17 12:18:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-09-17 12:18:04 -0400
commitb1a999892b9e13181ddd9a7d895f3d1c65fbb449 (patch)
tree1b0b7fec30b0bad4e649d68f8708a1cb14c06326 /tests/gnu/not_comma.out
parent0301397f6cf7f035f723e065eced122d78506718 (diff)
downloadbfs-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.out')
-rw-r--r--tests/gnu/not_comma.out34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/gnu/not_comma.out b/tests/gnu/not_comma.out
new file mode 100644
index 0000000..b90468e
--- /dev/null
+++ b/tests/gnu/not_comma.out
@@ -0,0 +1,34 @@
+basic
+basic
+basic/a
+basic/a
+basic/b
+basic/b
+basic/c
+basic/c
+basic/c/d
+basic/c/d
+basic/e
+basic/e
+basic/e/f
+basic/g
+basic/g
+basic/g/h
+basic/g/h
+basic/i
+basic/i
+basic/j
+basic/j
+basic/j/foo
+basic/k
+basic/k
+basic/k/foo
+basic/k/foo/bar
+basic/k/foo/bar
+basic/l
+basic/l
+basic/l/foo
+basic/l/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
+basic/l/foo/bar/baz