1#ifdef __CHECKER__
2#define __bitwise __attribute__((bitwise))
3#else
4#define __bitwise
5#endif
6
7typedef __INT16_TYPE__ __bitwise __be16;
8
9static __be16 foo(void)
10{
11	__be16 val = 0;
12	return val;
13}
14
15/*
16 * check-name: assign-restricted-ok
17 * check-command: test-linearize -fdump-ir $file
18 *
19 * check-output-ignore
20 * check-output-contains: store\\.16
21 * check-output-excludes: store\\.32
22 */
23