xref: /third_party/ltp/tools/sparse/sparse-src/validation/expand/builtin_isinf.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/expand/
1f08c3bdfSopenharmony_ciint test(void)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	if (!__builtin_isinf(__builtin_inff()))
4f08c3bdfSopenharmony_ci		return 0;
5f08c3bdfSopenharmony_ci	if (!__builtin_isinf(__builtin_inf()))
6f08c3bdfSopenharmony_ci		return 0;
7f08c3bdfSopenharmony_ci	if (!__builtin_isinf(__builtin_infl()))
8f08c3bdfSopenharmony_ci		return 0;
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ci	return 1;
11f08c3bdfSopenharmony_ci}
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_ci/*
14f08c3bdfSopenharmony_ci * check-name: builtin_isinf expand
15f08c3bdfSopenharmony_ci * check-command: test-linearize -Wno-decl $file
16f08c3bdfSopenharmony_ci * check-known-to-fail
17f08c3bdfSopenharmony_ci *
18f08c3bdfSopenharmony_ci * check-output-ignore
19f08c3bdfSopenharmony_ci * check-output-contains: ret\\..*\\$1
20f08c3bdfSopenharmony_ci */
21

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