Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / restrict1.C
blob3228321e522918297a5747b004a7cc3b158ef1ab
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-lim2-details" } */
4 struct Foo
6   Foo();
7   Foo(const Foo&);
8   int n;
9   int * __restrict__ p;
11 void bar(Foo f, int * __restrict__ q)
13   for (int i = 0; i < f.n; ++i)
14     {
15       *q += f.p[i];
16     }
19 /* { dg-final { scan-tree-dump "Executing store motion" "lim2" } } */