1 /* { dg-do run } */ 2 3 extern void abort (void); 4 5 union u 6 { 7 int i; 8 _Bool b; 9 }; 10 f(union u * vp,union u v)11void f(union u * vp, union u v) 12 { 13 *vp = v; 14 } 15 main()16int main() 17 { 18 union u v; 19 union u v1; 20 union u v2; 21 22 v.i = 10; 23 f(&v1, v); 24 25 v.b = 0; 26 f(&v2, v); 27 if (v2.b != 0) 28 abort (); 29 return 0; 30 } 31