xref: /third_party/ltp/tools/sparse/sparse-src/validation/kill-phi-node.c (revision f08c3bdf)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_civoid foo(int a, int *b, unsigned int g);
2f08c3bdfSopenharmony_civoid foo(int a, int *b, unsigned int g)
3f08c3bdfSopenharmony_ci{
4f08c3bdfSopenharmony_ci	int d = 0;
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ci	if ((!a || *b) && g)
7f08c3bdfSopenharmony_ci		d = 16;
8f08c3bdfSopenharmony_ci	else
9f08c3bdfSopenharmony_ci		d = 8;
10f08c3bdfSopenharmony_ci}
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_ciint bar(void);
13f08c3bdfSopenharmony_ciint bar(void)
14f08c3bdfSopenharmony_ci{
15f08c3bdfSopenharmony_ci	int i;
16f08c3bdfSopenharmony_ci	for (i = 0; i; i--)
17f08c3bdfSopenharmony_ci		;
18f08c3bdfSopenharmony_ci	return 0;
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci/*
22f08c3bdfSopenharmony_ci * check-name: kill-phi-node
23f08c3bdfSopenharmony_ci * check-command: test-linearize $file
24f08c3bdfSopenharmony_ci *
25f08c3bdfSopenharmony_ci * check-output-ignore
26f08c3bdfSopenharmony_ci * check-output-excludes: phisrc\\.
27f08c3bdfSopenharmony_ci */
28

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