]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/modref-13.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / modref-13.c
CommitLineData
d70ef656
JH
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-release_ssa" } */
3struct wrap {
4 void **array;
5};
6__attribute__ ((noinline))
7void
8write_array (struct wrap *ptr)
9{
10 ptr->array[0]=0;
11}
12int
13test ()
14{
15 void *arrayval;
16 struct wrap w = {&arrayval};
17 write_array (&w);
18 return w.array == &arrayval;
19}
20/* We should deterine that write_array writes to PTR only indirectly. */
a5c9b9bc 21/* { dg-final { scan-tree-dump "return 1" "release_ssa" } } */