diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/style_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/executor/style_test.go b/executor/style_test.go index 5c393ea3d..3bb581886 100644 --- a/executor/style_test.go +++ b/executor/style_test.go @@ -141,6 +141,14 @@ if (foo) { `failmsg("format %s string", "format")`, }, }, + { + pattern: `ifn?def\s+SYZ_`, + message: "SYZ_* are always defined, use #if instead of #ifdef", + tests: []string{ + `#ifndef SYZ_EXECUTOR_USES_FORK_SERVER`, + `#ifdef SYZ_EXECUTOR_USES_FORK_SERVER`, + }, + }, } for _, check := range checks { re := regexp.MustCompile(check.pattern) |
