Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git] / libphobos / testsuite / libphobos.init_fini / test18996.d
blob01d514cd5633dcfd9a27ed05fca24cd15f731c5b
1 // Issue https://issues.dlang.org/show_bug.cgi?id=18996
2 // Array!string calls removeRange without first adding the range, but never
3 // initializes the GC. The behavior of the default GC is to ignore removing
4 // ranges when the range wasn't added. The ProtoGC originally would crash when
5 // this happened.
7 import core.memory;
9 void main()
11 GC.removeRange(null);
12 GC.removeRoot(null);