extra: handle x = (u8)y; correctly
[smatch.git] / validation / sm_casts7.c
blob355007a592a0bed835734ea2ed72d3e834ad8bc0
1 #include <stdio.h>
2 #include <string.h>
3 #include "check_debug.h"
5 int a;
6 int main(void)
8 int x;
10 a = (unsigned short)x;
11 __smatch_implied(a);
13 return 0;
18 * check-name: smatch: casts #7
19 * check-command: smatch -I.. sm_casts7.c
21 * check-output-start
22 sm_casts7.c:11 main() implied: a = '0-65535'
23 * check-output-end