xref: /third_party/ltp/tools/sparse/sparse-src/validation/linear/goto-stmt-expr-conditional.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/linear/
1f08c3bdfSopenharmony_ciint t(void)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	goto inside;
4f08c3bdfSopenharmony_ci	return 1 ? 2 : ({
5f08c3bdfSopenharmony_ciinside:
6f08c3bdfSopenharmony_ci			return 3;
7f08c3bdfSopenharmony_ci			4;
8f08c3bdfSopenharmony_ci		    });
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_civoid f(int x, int y)
12f08c3bdfSopenharmony_ci{
13f08c3bdfSopenharmony_ci	1 ? x : ({
14f08c3bdfSopenharmony_cia:
15f08c3bdfSopenharmony_ci		 y;
16f08c3bdfSopenharmony_ci	});
17f08c3bdfSopenharmony_ci	goto a;
18f08c3bdfSopenharmony_ci}
19f08c3bdfSopenharmony_ci
20f08c3bdfSopenharmony_ci/*
21f08c3bdfSopenharmony_ci * check-name: goto-stmt-expr-conditional
22f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
23f08c3bdfSopenharmony_ci *
24f08c3bdfSopenharmony_ci * check-error-ignore
25f08c3bdfSopenharmony_ci * check-output-ignore
26f08c3bdfSopenharmony_ci * check-output-excludes: END
27f08c3bdfSopenharmony_ci */
28

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