blob: 01ccc473f501e17c936dccbe9f7fcb5ff9175dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
typedef unsigned int uint;
typedef unsigned long ulong;
static int * int_2_iptr(int a) { return (int *)a; }
static int * uint_2_iptr(uint a) { return (int *)a; }
static void * int_2_vptr(int a) { return (void *)a; }
static void * uint_2_vptr(uint a) { return (void *)a; }
/*
* check-name: cast-weirds
* check-command: sparse -m64 $file
*
* check-error-start
cast-weirds.c:4:42: warning: non size-preserving integer to pointer cast
cast-weirds.c:5:44: warning: non size-preserving integer to pointer cast
* check-error-end
*/
|