1 union u { 2 int i; 3 char x[8]; 4 }; 5 foo(int i)6static union u foo(int i) 7 { 8 return (union u)i; 9 } 10 bar(long l)11static union u bar(long l) 12 { 13 return (union u)l; 14 } 15 16 /* 17 * check-name: union-cast-no 18 * check-command: sparse -Wno-union-cast $file 19 * 20 * check-error-start 21 eval/union-cast-no.c:13:17: warning: cast to non-scalar 22 * check-error-end 23 */ 24