xref: /third_party/ltp/tools/sparse/sparse-src/validation/kill-phisrc.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ciint foo(int a, int b)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	int r = a + b;
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ci	if (a && 0) {
6f08c3bdfSopenharmony_ci		int s = r;
7f08c3bdfSopenharmony_ci		if (b)
8f08c3bdfSopenharmony_ci			s = 0;
9f08c3bdfSopenharmony_ci		(void) s;
10f08c3bdfSopenharmony_ci	}
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ci	return 0;
13f08c3bdfSopenharmony_ci}
14f08c3bdfSopenharmony_ci
15f08c3bdfSopenharmony_ci/*
16f08c3bdfSopenharmony_ci * check-name: kill-phisrc
17f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
18f08c3bdfSopenharmony_ci *
19f08c3bdfSopenharmony_ci * check-output-ignore
20f08c3bdfSopenharmony_ci * check-output-excludes: add\\.
21f08c3bdfSopenharmony_ci */
22

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