xref: /third_party/ltp/tools/sparse/sparse-src/validation/preprocessor/missing-delim.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/preprocessor/
1f08c3bdfSopenharmony_cistatic int  c = 'a;
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_cistatic char s[] = "abc;
4f08c3bdfSopenharmony_cistatic char t[] = "xyz";
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ciextern void foo(void);
7f08c3bdfSopenharmony_ci
8f08c3bdfSopenharmony_ci/*
9f08c3bdfSopenharmony_ci * check-name: missing-delim
10f08c3bdfSopenharmony_ci * check-command: sparse -E $file
11f08c3bdfSopenharmony_ci * check-output-ignore
12f08c3bdfSopenharmony_ci *
13f08c3bdfSopenharmony_ci * check-error-start
14f08c3bdfSopenharmony_cipreprocessor/missing-delim.c:2:0: warning: missing terminating ' character
15f08c3bdfSopenharmony_cipreprocessor/missing-delim.c:4:0: warning: missing terminating " character
16f08c3bdfSopenharmony_ci * check-error-end
17f08c3bdfSopenharmony_ci */
18

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