1double uintfloat(void) 2{ 3 union { 4 int a; 5 double f; 6 } s; 7 8 s.a = 1; 9 return s.f; 10} 11 12 13int uarray(void) 14{ 15 union { 16 double d; 17 int a[2]; 18 } s; 19 20 s.d = 1; 21 return s.a[0]; 22} 23 24/* 25 * check-name: init-local union 1 26 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 27 * check-output-ignore 28 * check-output-pattern(1): store\\.32 29 * check-output-pattern(1): load\\.64 30 * check-output-pattern(1): store\\.64 31 * check-output-pattern(1): load\\.32 32 */ 33