c++: lvalue_kind tweak
[official-gcc.git] / libphobos / testsuite / libphobos.exceptions / unknown_gc.d
blob183c0f2969e741a74ead31ef026ea85b16e1f120
1 // { dg-require-effective-target shared }
2 // { dg-options "-shared-libphobos" }
3 // { dg-shouldfail "unknowngc" }
4 // { dg-output "No GC was initialized, please recheck the name of the selected GC \\('unknowngc'\\)." }
5 import core.memory;
7 extern(C) __gshared string[] rt_options = [ "gcopt=gc:unknowngc" ];
9 void main()
11 // GC initialized upon first call -> Unknown GC error is thrown
12 GC.enable();