1 /* PR rtl-optimization/57130 */
2 
3 struct S { int a, b, c, d; } s[2] = { { 6, 8, -8, -5 }, { 0, 2, -1, 2 } };
4 
5 __attribute__((noinline, noclone)) void
foo(struct S r)6 foo (struct S r)
7 {
8   static int cnt;
9   if (__builtin_memcmp (&r, &s[cnt++], sizeof r) != 0)
10     __builtin_abort ();
11 }
12 
13 int
main()14 main ()
15 {
16   struct S r = { 6, 8, -8, -5 };
17   foo (r);
18   r = (struct S) { 0, 2, -1, 2 };
19   foo (r);
20   return 0;
21 }
22