Debian Codegraph @

gcc/testsuite/g++.dg/other/gc7.C

raw
1 // PR c++/91416 - GC during late parsing collects live data.
2 // { dg-do compile }
3 // { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0" }
4
5 __attribute__ ((unused)) struct S {
6 S() { }
7 } s;
8
9 __attribute__ ((unused)) struct X {
10 void fn ()
11 {
12 __attribute__ ((unused)) struct N {
13 N() { }
14 } n;
15 }
16 } x;