1f08c3bdfSopenharmony_cistruct s {
2f08c3bdfSopenharmony_ci	int f:2;
3f08c3bdfSopenharmony_ci};
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_cistatic int getf(struct s s) { return s.f; }
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci/*
8f08c3bdfSopenharmony_ci * check-name: bitfield-sign-signed
9f08c3bdfSopenharmony_ci * check-command: test-linearize -fdump-ir=linearize -fsigned-bitfields $file
10f08c3bdfSopenharmony_ci *
11f08c3bdfSopenharmony_ci * check-output-ignore
12f08c3bdfSopenharmony_ci * check-output-contains: sext\\.
13f08c3bdfSopenharmony_ci */
14