1f08c3bdfSopenharmony_citypedef __INT32_TYPE__ int32;
2f08c3bdfSopenharmony_citypedef __INT64_TYPE__ int64;
3f08c3bdfSopenharmony_ci
4f08c3bdfSopenharmony_cistatic _Bool sfoo(int64 a) { return ((int32) ~a) == (~ (int32)a); }
5f08c3bdfSopenharmony_cistatic _Bool sbar(int64 a) { return (~(int32) ~a) == (int32)a; }
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_citypedef __UINT32_TYPE__ uint32;
9f08c3bdfSopenharmony_citypedef __UINT64_TYPE__ uint64;
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_cistatic _Bool ufoo(uint64 a) { return ((uint32) ~a) == (~ (uint32)a); }
12f08c3bdfSopenharmony_cistatic _Bool ubar(uint64 a) { return (~(uint32) ~a) == (uint32)a; }
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ci/*
15f08c3bdfSopenharmony_ci * check-name: trunc-not0
16f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
17f08c3bdfSopenharmony_ci *
18f08c3bdfSopenharmony_ci * check-output-ignore
19f08c3bdfSopenharmony_ci * check-output-returns: 1
20f08c3bdfSopenharmony_ci */
21