Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/empty-2.C

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