xref: /third_party/ltp/tools/sparse/sparse-src/validation/flex-array-array.c (revision f08c3bdf)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_cistruct s {
2f08c3bdfSopenharmony_ci	int i;
3f08c3bdfSopenharmony_ci	long f[];
4f08c3bdfSopenharmony_ci};
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_cistatic struct s a[2];
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ci/*
9f08c3bdfSopenharmony_ci * check-name: flex-array-array
10f08c3bdfSopenharmony_ci * check-command: sparse -Wflexible-array-array $file
11f08c3bdfSopenharmony_ci *
12f08c3bdfSopenharmony_ci * check-error-start
13f08c3bdfSopenharmony_ciflex-array-array.c:6:18: warning: array of flexible structures
14f08c3bdfSopenharmony_ci * check-error-end
15f08c3bdfSopenharmony_ci */
16

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