blob: 183c0f2969e741a74ead31ef026ea85b16e1f120 [file] [log] [blame]
// { 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();
}