let identical symbols share their evaluate/expand methods
[smatch.git] / validation / builtin-constant-eval.c
blob63e586e99b50e1ec6b8f965f677a5b88334e12ba
1 unsigned short bswap16(void);
2 unsigned short bswap16(void)
4 return __builtin_bswap16(0x1234);
7 unsigned int bswap32(void);
8 unsigned int bswap32(void)
10 return __builtin_bswap32(0x12345678);
13 unsigned long long bswap64(void);
14 unsigned long long bswap64(void)
16 return __builtin_bswap64(0x123456789abcdef0ULL);
20 * check-name: builtin-eval
21 * check-command: test-linearize $file
23 * check-output-ignore
24 * check-output-excludes: __builtin_bswap
25 * check-output-contains:ret.16 *.0x3412
26 * check-output-contains:ret.32 *.0x78563412
27 * check-output-contains:ret.64 *.0xf0debc9a78563412