11 var re1 = regexp.MustCompile(`ab\yef`) // want `error parsing regexp`
12 var re2 = regexp.MustCompile(c1) // want `error parsing regexp`
13 var re3 = regexp.MustCompile(c2)
14 var re4 = regexp.MustCompile(
15 c1, // want `error parsing regexp`
19 _, err := regexp.Compile(`foo(`) // want `error parsing regexp`
23 if re2.MatchString("foo(") {
24 log.Println("of course 'foo(' matches 'foo('")
27 regexp.Match("foo(", nil) // want `error parsing regexp`
28 regexp.MatchReader("foo(", nil) // want `error parsing regexp`
29 regexp.MatchString("foo(", "") // want `error parsing regexp`
32 // must be a basic type to trigger SA4017 (in case of a test failure)
37 // Don't get confused by methods named init
40 // this will become a synthetic init function, that we don't want to
42 var _ = regexp.MustCompile("(") // want `error parsing regexp`