RISC-V: Describe -march behavior for dependent extensions
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020227-1.c
blob04931e6d061261709593ae3881e2e7d7eb32d4c8
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)). */
5 void abort (void);
6 void exit (int);
8 typedef __complex__ float cf;
9 struct x { char c; cf f; } __attribute__ ((__packed__));
10 extern void f2 (struct x*);
11 extern void f1 (void);
12 int
13 main (void)
15 f1 ();
16 exit (0);
19 void
20 f1 (void)
22 struct x s;
23 s.f = 1;
24 s.c = 42;
25 f2 (&s);
28 void
29 f2 (struct x *y)
31 if (y->f != 1 || y->c != 42)
32 abort ();