diff options
| -rw-r--r-- | validation/preprocessor/extra-token.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/preprocessor/extra-token.c b/validation/preprocessor/extra-token.c new file mode 100644 index 00000000..50a853c5 --- /dev/null +++ b/validation/preprocessor/extra-token.c @@ -0,0 +1,15 @@ +#define THIS 0 +#ifdef THIS == 1 +#endif + +/* + * check-name: preprocessor/extra-token.c + * check-command: sparse -E $file + * check-known-to-fail + * + * check-error-start +preprocessor/extra-token.c:2:13: warning: extra tokens at end of #ifdef directive + * check-error-end + * + * check-output-ignore + */ |
