blob: 01b77b4fb2c4ca5de5567a9f958aa4f462cff4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/45307
// { dg-options "-fdump-tree-gimple -fdump-tree-optimized -O" }
struct fallible_t { };
const fallible_t fallible = fallible_t();
void t(void)
{
}
// { dg-final { scan-tree-dump-not "fallible" "gimple" } }
// Whole constructor should be optimized away.
// { dg-final { scan-tree-dump-not "int" "optimized" } }
// { dg-final { cleanup-tree-dump "gimple" } }
// { dg-final { cleanup-tree-dump "optimized" } }
|