Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr51879-16.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27) |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */ 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"} } */