xref: /third_party/ltp/tools/sparse/sparse-src/validation/check_byte_count-ice.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ciextern void *memset (void *s, int c, int n);
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_cistatic void foo(void *a)
4f08c3bdfSopenharmony_ci{
5f08c3bdfSopenharmony_ci	memset(foo, + ', 20);
6f08c3bdfSopenharmony_ci}
7f08c3bdfSopenharmony_ci/*
8f08c3bdfSopenharmony_ci * check-name: Segfault in check_byte_count after syntax error
9f08c3bdfSopenharmony_ci *
10f08c3bdfSopenharmony_ci * check-error-start
11f08c3bdfSopenharmony_cicheck_byte_count-ice.c:6:0: warning: missing terminating ' character
12f08c3bdfSopenharmony_cicheck_byte_count-ice.c:5:23: warning: multi-character character constant
13f08c3bdfSopenharmony_cicheck_byte_count-ice.c:6:1: error: Expected ) in function call
14f08c3bdfSopenharmony_cicheck_byte_count-ice.c:6:1: error: got }
15f08c3bdfSopenharmony_cicheck_byte_count-ice.c:20:0: error: Expected } at end of function
16f08c3bdfSopenharmony_cicheck_byte_count-ice.c:20:0: error: got end-of-input
17f08c3bdfSopenharmony_cicheck_byte_count-ice.c:5:15: error: not enough arguments for function memset
18f08c3bdfSopenharmony_ci * check-error-end
19f08c3bdfSopenharmony_ci */
20

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