2012-07-06 13:22:12 +02:00
|
|
|
/* { dg-do compile } */
|
2014-11-17 22:48:14 +01:00
|
|
|
/* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
|
2012-07-06 13:22:12 +02:00
|
|
|
|
|
|
|
struct S {
|
|
|
|
int i;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct S foo (void);
|
|
|
|
extern int foo2 (void);
|
|
|
|
|
|
|
|
struct S s;
|
|
|
|
|
|
|
|
int bar (int c) {
|
|
|
|
int r;
|
|
|
|
|
|
|
|
if (c)
|
|
|
|
{
|
|
|
|
s = foo ();
|
|
|
|
r = foo2 ();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
s = foo ();
|
|
|
|
r = foo2 ();
|
|
|
|
}
|
|
|
|
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* { dg-final { scan-tree-dump-times "foo \\(" 1 "pre"} } */
|
|
|
|
/* { dg-final { scan-tree-dump-times "foo2 \\(" 1 "pre"} } */
|