xref: /third_party/ltp/tools/sparse/sparse-src/validation/crash-select.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_cistruct s {
2f08c3bdfSopenharmony_ci	void *b;
3f08c3bdfSopenharmony_ci	long c;
4f08c3bdfSopenharmony_ci};
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_cilong d(void);
7f08c3bdfSopenharmony_cistatic long f(void)
8f08c3bdfSopenharmony_ci{
9f08c3bdfSopenharmony_ci	struct s s;
10f08c3bdfSopenharmony_ci	s.c = d();
11f08c3bdfSopenharmony_ci	if (s.c)
12f08c3bdfSopenharmony_ci		s.c = 2;
13f08c3bdfSopenharmony_ci	return s.c;
14f08c3bdfSopenharmony_ci}
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_ci/*
17f08c3bdfSopenharmony_ci * check-name: crash-select
18f08c3bdfSopenharmony_ci */
19

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