1f08c3bdfSopenharmony_cistruct S { 2f08c3bdfSopenharmony_ci int :1; 3f08c3bdfSopenharmony_ci signed int s:2; 4f08c3bdfSopenharmony_ci unsigned int u:3; 5f08c3bdfSopenharmony_ci}; 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ciint os(int i, struct S *b) { return i || b->s; } 8f08c3bdfSopenharmony_ciint ou(int i, struct S *b) { return i || b->u; } 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ci/* 11f08c3bdfSopenharmony_ci * check-name: trunc-seteq0 12f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 13f08c3bdfSopenharmony_ci * 14f08c3bdfSopenharmony_ci * check-output-ignore 15f08c3bdfSopenharmony_ci * check-output-excludes: trunc\\. 16f08c3bdfSopenharmony_ci * check-output-excludes: sext\\. 17f08c3bdfSopenharmony_ci * check-output-excludes: zext\\. 18f08c3bdfSopenharmony_ci */ 19