xref: /illumos-gate/usr/src/tools/smatch/src/validation/preprocessor/preprocessor19.c (revision f52943a93040563107b95bccb9db87d9971ef47d)
1 /* got burned by that - freed the new definition in the case when we had
2    warned and replaced the old one */
3 #define A x
4 #define A y
5 A
6 /*
7  * check-name: Preprocessor #19
8  * check-command: sparse -E $file
9  *
10  * check-output-start
11 
12 y
13  * check-output-end
14  * check-error-start
15 preprocessor/preprocessor19.c:4:9: warning: preprocessor token A redefined
16 preprocessor/preprocessor19.c:3:9: this was the original definition
17  * check-error-end
18  */
19