diff options
| -rw-r--r-- | validation/preprocessor/missing-delim.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/preprocessor/missing-delim.c b/validation/preprocessor/missing-delim.c new file mode 100644 index 00000000..3763520b --- /dev/null +++ b/validation/preprocessor/missing-delim.c @@ -0,0 +1,18 @@ +static int c = 'a; + +static char s[] = "abc; +static char t[] = "xyz"; + +extern void foo(void); + +/* + * check-name: missing-delim + * check-command: sparse -E $file + * check-output-ignore + * check-known-to-fail + * + * check-error-start +preprocessor/missing-delim.c:2:0: warning: missing delimitator ' +preprocessor/missing-delim.c:4:0: warning: missing delimitator " + * check-error-end + */ |
