xref: /third_party/ltp/tools/sparse/sparse-src/validation/optim/multi-phisrc.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/optim/
1f08c3bdfSopenharmony_civoid fun(void);
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_civoid foo(int p, int a)
4f08c3bdfSopenharmony_ci{
5f08c3bdfSopenharmony_ci	if (p == p) {
6f08c3bdfSopenharmony_ci		switch (p) {
7f08c3bdfSopenharmony_ci		case 0:
8f08c3bdfSopenharmony_ci			break;
9f08c3bdfSopenharmony_ci		case 1:
10f08c3bdfSopenharmony_ci			a = 0;
11f08c3bdfSopenharmony_ci		}
12f08c3bdfSopenharmony_ci	}
13f08c3bdfSopenharmony_ci	if (a)
14f08c3bdfSopenharmony_ci		fun();
15f08c3bdfSopenharmony_ci}
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_ci/*
18f08c3bdfSopenharmony_ci * check-name: multi-phisrc
19f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
20f08c3bdfSopenharmony_ci *
21f08c3bdfSopenharmony_ci * check-output-ignore
22f08c3bdfSopenharmony_ci * check-output-excludes: phi
23f08c3bdfSopenharmony_ci */
24

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