]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/modref-11.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / modref-11.c
CommitLineData
5f377803 1/* { dg-do compile } */
494bdadf 2/* { dg-options "-O2 -fdump-tree-modref1 -fno-ipa-pure-const" } */
5f377803
JH
3struct linkedlist {
4 struct linkedlist *next;
5};
6struct linkedlist *
7find_last (struct linkedlist *l)
8{
9 while (l->next)
10 l = l->next;
11 return l;
12}
d70ef656 13/* { dg-final { scan-tree-dump "parm 0 flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape" "modref1"} } */