xref: /third_party/ltp/tools/sparse/sparse-src/validation/field-overlap.c (revision f08c3bdf)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_cistatic struct {
2f08c3bdfSopenharmony_ci	int x;
3f08c3bdfSopenharmony_ci	struct {
4f08c3bdfSopenharmony_ci		int z;
5f08c3bdfSopenharmony_ci		int w;
6f08c3bdfSopenharmony_ci	} y;
7f08c3bdfSopenharmony_ci} a = { .y.z = 1, .y.w = 2, };
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_cistatic struct {int x, y, z;} w[2] = {
10f08c3bdfSopenharmony_ci	{.x = 1, .y = 2, .z = 3},
11f08c3bdfSopenharmony_ci	{.x = 1, .y = 2, .z = 3}
12f08c3bdfSopenharmony_ci};
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ci/*
15f08c3bdfSopenharmony_ci * check-name: field overlap
16f08c3bdfSopenharmony_ci */
17

Indexes created Thu Nov 07 10:32:03 CST 2024