1f08c3bdfSopenharmony_citypedef unsigned int uint;
2f08c3bdfSopenharmony_citypedef unsigned long ulong;
3f08c3bdfSopenharmony_ci
4f08c3bdfSopenharmony_cistatic int * int_2_iptr(int a) { return (int *)a; }
5f08c3bdfSopenharmony_cistatic int * uint_2_iptr(uint a) { return (int *)a; }
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_cistatic void * int_2_vptr(int a) { return (void *)a; }
8f08c3bdfSopenharmony_cistatic void * uint_2_vptr(uint a) { return (void *)a; }
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_ci/*
11f08c3bdfSopenharmony_ci * check-name: cast-weirds
12f08c3bdfSopenharmony_ci * check-command: sparse -m64 $file
13f08c3bdfSopenharmony_ci * check-assert: sizeof(void *) == 8
14f08c3bdfSopenharmony_ci *
15f08c3bdfSopenharmony_ci * check-error-start
16f08c3bdfSopenharmony_cicast-weirds.c:4:48: warning: non size-preserving integer to pointer cast
17f08c3bdfSopenharmony_cicast-weirds.c:5:50: warning: non size-preserving integer to pointer cast
18f08c3bdfSopenharmony_ci * check-error-end
19f08c3bdfSopenharmony_ci */
20