1 2 3 4 5 6 7 8 9 10 11 12 13 14
typedef short type; short foo (type *sp, int a) { type t; int i; t = sp[a]; i = (int)(type)sp[a]; if (i) return 0; return t; }