]> git.ipfire.org Git - thirdparty/gcc.git/blob - 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
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-modref1 -fno-ipa-pure-const" } */
3 struct linkedlist {
4 struct linkedlist *next;
5 };
6 struct linkedlist *
7 find_last (struct linkedlist *l)
8 {
9 while (l->next)
10 l = l->next;
11 return l;
12 }
13 /* { dg-final { scan-tree-dump "parm 0 flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape" "modref1"} } */