1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre -fno-tree-copy-prop -fno-tree-dominator-opts -fno-tree-copyrename" } */
3 
4 extern int foo (void);
5 
bar(int c,int * p)6 void bar (int c, int *p)
7 {
8   int *q = p;
9 
10   if (c)
11     *p = foo ();
12   else
13     *q = foo ();
14 }
15 
16 /* { dg-final { scan-tree-dump-times "foo \\(" 1 "pre"} } */
17