xref: /third_party/ltp/tools/sparse/sparse-src/validation/linear/degen-array.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/linear/
1f08c3bdfSopenharmony_ciextern int a[3];
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_ciint (*fa(int i))[] { return &a; }
4f08c3bdfSopenharmony_ciint *f0(int i) { return &a[0]; }
5f08c3bdfSopenharmony_ciint *fd(int i) { return  a; }
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci/*
8f08c3bdfSopenharmony_ci * check-name: degen-array
9f08c3bdfSopenharmony_ci * check-command: test-linearize -m64 -Wno-decl $file
10f08c3bdfSopenharmony_ci * check-assert: sizeof(void *) == 8
11f08c3bdfSopenharmony_ci *
12f08c3bdfSopenharmony_ci * check-output-start
13f08c3bdfSopenharmony_cifa:
14f08c3bdfSopenharmony_ci.L0:
15f08c3bdfSopenharmony_ci	<entry-point>
16f08c3bdfSopenharmony_ci	ret.64      a
17f08c3bdfSopenharmony_ci
18f08c3bdfSopenharmony_ci
19f08c3bdfSopenharmony_cif0:
20f08c3bdfSopenharmony_ci.L2:
21f08c3bdfSopenharmony_ci	<entry-point>
22f08c3bdfSopenharmony_ci	ret.64      a
23f08c3bdfSopenharmony_ci
24f08c3bdfSopenharmony_ci
25f08c3bdfSopenharmony_cifd:
26f08c3bdfSopenharmony_ci.L4:
27f08c3bdfSopenharmony_ci	<entry-point>
28f08c3bdfSopenharmony_ci	ret.64      a
29f08c3bdfSopenharmony_ci
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci * check-output-end
32f08c3bdfSopenharmony_ci */
33

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