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 extern(C) __gshared string[] rt_options = [ "gcopt=gc:unknowngc" ]; 6 main()7void main() 8 { 9 } 10