xref: /third_party/ltp/tools/sparse/sparse-src/validation/function-redecl2.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ciextern void exit (int __status) __attribute__ ((__noreturn__));
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_ciint func0(int a) __attribute__ ((pure));
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ci__attribute__ ((pure))
6f08c3bdfSopenharmony_ciint func0(int a)
7f08c3bdfSopenharmony_ci{
8f08c3bdfSopenharmony_ci	return 0;
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ci__attribute__ ((noreturn)) void func1(int a);
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_civoid func1(int a)
14f08c3bdfSopenharmony_ci{
15f08c3bdfSopenharmony_ci	exit(0);
16f08c3bdfSopenharmony_ci}
17f08c3bdfSopenharmony_ci
18f08c3bdfSopenharmony_civoid func2(int a) __attribute__ ((noreturn));
19f08c3bdfSopenharmony_ci
20f08c3bdfSopenharmony_ci__attribute__ ((noreturn))
21f08c3bdfSopenharmony_civoid func2(int a)
22f08c3bdfSopenharmony_ci{
23f08c3bdfSopenharmony_ci	exit(0);
24f08c3bdfSopenharmony_ci}
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_ci/*
27f08c3bdfSopenharmony_ci * check-name: function-redecl2
28f08c3bdfSopenharmony_ci */
29

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