blob: 10ebe1ff47406fd40348db97c456391852e9cd31 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-modref1 -fno-ipa-pure-const" } */
struct linkedlist {
struct linkedlist *next;
};
struct linkedlist *
find_last (struct linkedlist *l)
{
while (l->next)
l = l->next;
return l;
}
/* { dg-final { scan-tree-dump "parm 0 flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape" "modref1"} } */