aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c
blob: 0d80f02b330c9124c64e600575f1771e7a23a294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre-details" } */

/* From PR21608.  */

#define bool _Bool
static inline bool wrap(bool f) { return f; }
bool bar(bool f)
{
        return wrap(f);
}

/* { dg-final { scan-tree-dump "Replaced \\\(_Bool\\\) D.*with f_" "fre" } } */
/* { dg-final { scan-tree-dump "Replaced \\\(int\\\) f_.*with D" "fre" } } */
/* { dg-final { cleanup-tree-dump "fre" } } */