PR c++/80290
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr64411.C
blob122b9eec414e1a86c6ff12312de4a446f62ad18f
1 // PR target/64411
2 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } }
3 // { dg-options "-Os -mcmodel=medium -fPIC -fschedule-insns -fselective-scheduling" }
5 typedef __SIZE_TYPE__ size_t;
7 extern "C"  long strtol ()
8   { return 0; }
10 static struct {
11   void *sp[2];
12 } info;
14 union S813
16   void * c[5];
18 s813;
20 S813 a813[5];
21 S813 check813 (S813, S813 *, S813);
23 void checkx813 ()
25   __builtin_memset (&s813, '\0', sizeof (s813));
26   __builtin_memset (&info, '\0', sizeof (info));
27   check813 (s813, &a813[1], a813[2]);