implied: use a time based timeout instead of counting ->nr_children
[smatch.git] / validation / div.c
blob3dcbfd57c488b44c4c98632027cd4dacb7f2f1db
1 #include <limits.h>
3 static int xd = 1 / 0;
4 static int xl = 1L / 0;
5 static int xll = 1LL / 0;
7 static int yd = INT_MIN / -1;
8 static long yl = LONG_MIN / -1;
9 static long long yll = LLONG_MIN / -1;
11 static int zd = INT_MIN % -1;
12 static long zl = LONG_MIN % -1;
13 static long long zll = LLONG_MIN % -1;
16 * check-name: division constants
18 * check-error-start
19 div.c:3:19: warning: division by zero
20 div.c:4:20: warning: division by zero
21 div.c:5:22: warning: division by zero
22 div.c:7:25: warning: constant integer operation overflow
23 div.c:8:27: warning: constant integer operation overflow
24 div.c:9:34: warning: constant integer operation overflow
25 div.c:11:25: warning: constant integer operation overflow
26 div.c:12:27: warning: constant integer operation overflow
27 div.c:13:34: warning: constant integer operation overflow
28 * check-error-end