xref: /freebsd/contrib/netbsd-tests/lib/libc/regex/data/paren.in (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1# parentheses and perversions thereof
2a(b)c		-	abc	abc
3a\(b\)c		b	abc	abc
4a(		C	EPAREN
5a(		b	a(	a(
6a\(		-	a(	a(
7a\(		bC	EPAREN
8a\(b		bC	EPAREN
9a(b		C	EPAREN
10a(b		b	a(b	a(b
11# gag me with a right parenthesis -- 1003.2 goofed here (my fault, partly)
12a)		-	a)	a)
13)		-	)	)
14# end gagging (in a just world, those *should* give EPAREN)
15a)		b	a)	a)
16a\)		bC	EPAREN
17\)		bC	EPAREN
18a()b		-	ab	ab
19a\(\)b		b	ab	ab
20