xref: /third_party/ltp/tools/sparse/sparse-src/validation/optim/mask1-setne0.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/optim/
1f08c3bdfSopenharmony_cistruct s {
2f08c3bdfSopenharmony_ci	unsigned i:1;
3f08c3bdfSopenharmony_ci};
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciint foo(struct s x)
6f08c3bdfSopenharmony_ci{
7f08c3bdfSopenharmony_ci	unsigned int i = x.i;
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_ci	if (i == 0)
10f08c3bdfSopenharmony_ci		return 1;
11f08c3bdfSopenharmony_ci	else if (i == 1)
12f08c3bdfSopenharmony_ci		return 1;
13f08c3bdfSopenharmony_ci	return 0;
14f08c3bdfSopenharmony_ci}
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_ci/*
17f08c3bdfSopenharmony_ci * check-name: mask1-setne0
18f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
19f08c3bdfSopenharmony_ci *
20f08c3bdfSopenharmony_ci * check-output-start
21f08c3bdfSopenharmony_cifoo:
22f08c3bdfSopenharmony_ci.L0:
23f08c3bdfSopenharmony_ci	<entry-point>
24f08c3bdfSopenharmony_ci	ret.32      $1
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_ci
27f08c3bdfSopenharmony_ci * check-output-end
28f08c3bdfSopenharmony_ci */
29

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