[PR64164] Drop copyrename, use coalescible partition as base when optimizing.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr52419.c
blobd24225a3ea764c53463086cf707bb07283f1b483
1 /* PR middle-end/52419 */
2 /* { dg-do run } */
4 extern void abort (void);
6 typedef long long V
7 __attribute__ ((vector_size (2 * sizeof (long long)), may_alias));
9 typedef struct S { V b; } P __attribute__((aligned (1)));
11 struct __attribute__((packed)) T { char c; P s; };
13 __attribute__((noinline, noclone)) void
14 foo (P *p)
16 p->b[1] = 5;
19 int
20 main ()
22 V a = { 3, 4 };
23 struct T t;
25 t.s.b = a;
26 foo (&t.s);
28 if (t.s.b[0] != 3 || t.s.b[1] != 5)
29 abort ();
31 return 0;