blob: 183c0f2969e741a74ead31ef026ea85b16e1f120 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-require-effective-target shared }
// { dg-options "-shared-libphobos" }
// { dg-shouldfail "unknowngc" }
// { dg-output "No GC was initialized, please recheck the name of the selected GC \\('unknowngc'\\)." }
import core.memory;
extern(C) __gshared string[] rt_options = [ "gcopt=gc:unknowngc" ];
void main()
{
// GC initialized upon first call -> Unknown GC error is thrown
GC.enable();
}
|