1 #include <stdio.h> 2 #include "header.h" 3 4 int main() 5 { 6 union u u; 7 8 u.i = 0xfedcba98; 9 printf("u.i = %08x\n", u.i); 10 foo(&u, 1); 11 printf("u.i = %08x (expecting fedcba99)\n", u.i); 12 13 return (u.i == 0xfedcba99)? 0 : 1; 14 } 15