]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/testsuite/libphobos.exceptions/unknown_gc.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / libphobos / testsuite / libphobos.exceptions / unknown_gc.d
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;
6
7 extern(C) __gshared string[] rt_options = [ "gcopt=gc:unknowngc" ];
8
9 void main()
10 {
11 // GC initialized upon first call -> Unknown GC error is thrown
12 GC.enable();
13 }