]>
Commit | Line | Data |
---|---|---|
5f377803 | 1 | /* { dg-do compile } */ |
494bdadf | 2 | /* { dg-options "-O2 -fdump-tree-modref1 -fno-ipa-pure-const" } */ |
5f377803 JH |
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 | } | |
d70ef656 | 13 | /* { dg-final { scan-tree-dump "parm 0 flags: no_direct_clobber no_indirect_clobber no_direct_escape no_indirect_escape" "modref1"} } */ |