xref: /third_party/ltp/tools/sparse/sparse-src/validation/attr-inline.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ci
2f08c3bdfSopenharmony_cistatic inline __attribute__((__always_inline__)) int gt(int lhs, int rhs)
3f08c3bdfSopenharmony_ci{
4f08c3bdfSopenharmony_ci	return lhs > rhs;
5f08c3bdfSopenharmony_ci}
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ciextern inline __attribute__((__gnu_inline__)) int ge(int lhs, int rhs)
8f08c3bdfSopenharmony_ci{
9f08c3bdfSopenharmony_ci	return lhs >= rhs;
10f08c3bdfSopenharmony_ci}
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_cistatic __attribute__((__warning__("That's junk!"))) __attribute__((__unused__))
13f08c3bdfSopenharmony_ci__attribute__((__noinline__))
14f08c3bdfSopenharmony_civoid junk(void)
15f08c3bdfSopenharmony_ci{
16f08c3bdfSopenharmony_ci	__asm__("");
17f08c3bdfSopenharmony_ci}
18f08c3bdfSopenharmony_ci
19f08c3bdfSopenharmony_ci/*
20f08c3bdfSopenharmony_ci * check-name: inline attributes
21f08c3bdfSopenharmony_ci */
22

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