[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / g++.dg / other / pr49912.C
blobb8c3e5bedff759cf20d193b84c433bc948f0b998
1 // PR rtl-optimization/49912
2 // { dg-do compile }
3 // { dg-require-effective-target freorder }
4 // { dg-options "-O -freorder-blocks-and-partition" }
6 int foo (int *);
8 struct S
10   int *m1 ();
11   S (int);
12    ~S () { foo (m1 ()); }
15 template <int>
16 struct V
18   S *v1;
19   void m2 (const S &);
20   S *base ();
23 template <int N>
24 void V<N>::m2 (const S &x)
26   S a = x;
27   S *l = base ();
28   while (l)
29     *v1 = *--l;
32 V<0> v;
34 void
35 foo ()
37   v.m2 (0);