2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51879-16.c
blob3a84e9746933355be423dfa1272f323f0faa985d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre" } */
4 struct S {
5 int i;
6 };
8 extern struct S foo (void);
9 extern int foo2 (void);
11 struct S s;
13 int bar (int c) {
14 int r;
16 if (c)
18 s = foo ();
19 r = foo2 ();
21 else
23 s = foo ();
24 r = foo2 ();
27 return r;
30 /* { dg-final { scan-tree-dump-times "foo \\(" 1 "pre"} } */
31 /* { dg-final { scan-tree-dump-times "foo2 \\(" 1 "pre"} } */
32 /* { dg-final { cleanup-tree-dump "pre" } } */