[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43864-2.c
blob6393144ccf73d7a9bd76a3f7235d3bb123c8d0bb
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
4 int
5 f (int c, int b, int d)
7 int r, e;
9 if (c)
10 r = b + d;
11 else
13 e = b + d;
14 r = e;
17 return r;
20 /* { dg-final { scan-tree-dump-times "if " 0 "pre"} } */
21 /* { dg-final { scan-tree-dump-times "(?n)_.*\\+.*_" 1 "pre"} } */
22 /* { dg-final { scan-tree-dump-not "Invalid sum" "pre"} } */