1f08c3bdfSopenharmony_cistruct bfs { 2f08c3bdfSopenharmony_ci int a: 2; 3f08c3bdfSopenharmony_ci int b: 30; 4f08c3bdfSopenharmony_ci}; 5f08c3bdfSopenharmony_ci 6f08c3bdfSopenharmony_ciint foo(void) 7f08c3bdfSopenharmony_ci{ 8f08c3bdfSopenharmony_ci struct bfs bf = { .a = 1, .b = 2 }; 9f08c3bdfSopenharmony_ci return (struct bfs[]){bf}[0].b; 10f08c3bdfSopenharmony_ci} 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ci/* 13f08c3bdfSopenharmony_ci * check-name: compound-literal01.c 14f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file 15f08c3bdfSopenharmony_ci * 16f08c3bdfSopenharmony_ci * check-output-ignore 17f08c3bdfSopenharmony_ci * check-output-contains: ret\\..*\\$2 18f08c3bdfSopenharmony_ci */ 19