1/* This testcase failed on mmix-knuth-mmixware. Problem was with storing 2 to an unaligned mem:SC, gcc tried doing it by parts from a (concat:SC 3 (reg:SF 293) (reg:SF 294)). */ 4 5typedef __complex__ float cf; 6struct x { char c; cf f; } __attribute__ ((__packed__)); 7extern void f2 (struct x*); 8extern void f1 (void); 9int 10main (void) 11{ 12 f1 (); 13 exit (0); 14} 15 16void 17f1 (void) 18{ 19 struct x s; 20 s.f = 1; 21 s.c = 42; 22 f2 (&s); 23} 24 25void 26f2 (struct x *y) 27{ 28 if (y->f != 1 || y->c != 42) 29 abort (); 30} 31