1 #include "check_debug.h"
3 #define add(x, y) x + y
4 #define sub(x, y) x - y
14 x
= 4 * add(2, 3) * 8;
21 * check-name: Smatch macro precedence bugs
22 * check-command: smatch -I.. sm_macros.c
25 sm_macros.c:12 func() warn: the 'add' macro might need parens
26 sm_macros.c:14 func() warn: the 'add' macro might need parens
27 sm_macros.c:14 func() warn: the 'add' macro might need parens
28 sm_macros.c:15 func() warn: the 'add' macro might need parens
29 sm_macros.c:17 func() warn: the 'sub' macro might need parens
30 sm_macros.c:18 func() warn: the 'sub' macro might need parens