xref: /third_party/ltp/tools/sparse/sparse-src/validation/optim/bad-phisrc1a.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/optim/
1f08c3bdfSopenharmony_ciint def(void);
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_ciint fun4(struct xfrm_state *net, int cnt)
4f08c3bdfSopenharmony_ci{
5f08c3bdfSopenharmony_ci	int err = 0;
6f08c3bdfSopenharmony_ci	if (err)
7f08c3bdfSopenharmony_ci		goto out;
8f08c3bdfSopenharmony_ci	for (; net;)
9f08c3bdfSopenharmony_ci		err = def();
10f08c3bdfSopenharmony_ci	if (cnt)
11f08c3bdfSopenharmony_ciout:
12f08c3bdfSopenharmony_ci		return err;
13f08c3bdfSopenharmony_ci	return 0;
14f08c3bdfSopenharmony_ci}
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_ci/*
17f08c3bdfSopenharmony_ci * check-name: bad-phisrc1a
18f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
19f08c3bdfSopenharmony_ci *
20f08c3bdfSopenharmony_ci * check-output-ignore
21f08c3bdfSopenharmony_ci * check-output-contains: select\\.
22f08c3bdfSopenharmony_ci */
23f08c3bdfSopenharmony_ci
24

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