xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-extendx.c (revision fa4a3e77edc40df6d92e8da6fc4961d275e9896d)
1 typedef unsigned short u16;
2 typedef          short s16;
3 typedef unsigned   int u32;
4 typedef            int s32;
5 typedef unsigned  long long u64;
6 typedef           long long s64;
7 
8 u64 ufoo(int x)
9 {
10 	return x & 0x7fff;
11 }
12 
13 u64 sfoo(int x)
14 {
15 	return x & 0x7fff;
16 }
17 
18 /*
19  * check-name: and-extend
20  * check-command: test-linearize -Wno-decl $file
21  *
22  * check-output-ignore
23  * check-output-contains: and\\.64.*0x7fff
24  */
25