comparison gcc/testsuite/gcc.dg/pr51879-16.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
3
4 struct S {
5 int i;
6 };
7
8 extern struct S foo (void);
9 extern int foo2 (void);
10
11 struct S s;
12
13 int bar (int c) {
14 int r;
15
16 if (c)
17 {
18 s = foo ();
19 r = foo2 ();
20 }
21 else
22 {
23 s = foo ();
24 r = foo2 ();
25 }
26
27 return r;
28 }
29
30 /* { dg-final { scan-tree-dump-times "foo \\(" 1 "pre"} } */
31 /* { dg-final { scan-tree-dump-times "foo2 \\(" 1 "pre"} } */