diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-04 00:52:18 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-08 17:14:38 +0200 |
| commit | 2478121abb6bd81fe4d750b7ae25a5400c2157a9 (patch) | |
| tree | 9452988480cd4fccd65c5ced502e75f3af864f17 /validation/preprocessor | |
| parent | 112a6909b85065492584237102a9ad753b292012 (diff) | |
| download | sparse-dev-2478121abb6bd81fe4d750b7ae25a5400c2157a9.tar.gz | |
builtin: add testcase for builtin macro expansion
Add a few silly testcases doing some expansion of a builtin macro.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/preprocessor')
| -rw-r--r-- | validation/preprocessor/builtin.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/validation/preprocessor/builtin.c b/validation/preprocessor/builtin.c new file mode 100644 index 00000000..6c3aa176 --- /dev/null +++ b/validation/preprocessor/builtin.c @@ -0,0 +1,17 @@ +__CHECKER__ +F(__CHECKER__,__CHECKER__) +S(#__CHECKER__) +const char str[] = "__CHECKER__"; + +/* + * check-name: builtin + * check-command: sparse -E $file + * + * check-output-start + +1 +F(1,1) +S(#1) +const char str[] = "__CHECKER__"; + * check-output-end + */ |
