1/* PR rtl-optimization/57130 */
2
3struct S { int a, b, c, d; } s[2] = { { 6, 8, -8, -5 }, { 0, 2, -1, 2 } };
4
5__attribute__((noinline, noclone)) void
6foo (struct S r)
7{
8  static int cnt;
9  if (__builtin_memcmp (&r, &s[cnt++], sizeof r) != 0)
10    __builtin_abort ();
11}
12
13int
14main ()
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