db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / overflow.c
blobc2655e329bb8c6d73e01fd6f2b6e276034996ad5
1 extern int a;
3 int a = __INT_MAX__ * 2;
5 int foo(void)
7 return __INT_MAX__ * 2;
11 * check-name: overflow
12 * check-command: sparse -Wno-decl $file
14 * check-known-to-fail
15 * check-error-start
16 bug-overflow.c:3:21: warning: integer overflow in expression
17 bug-overflow.c:7:28: warning: integer overflow in expression
18 * check-error-end