1 // PERMUTE_ARGS: -version=A 2 // EXTRA_FILES: imports/link10920a.d 3 4 // It's imported but won't be linked. 5 import imports.link10920a; 6 main()7void main() 8 { 9 BitArray ba; 10 version(A) 11 { 12 // Run semantic3 of BitArray.toString() 13 // before the FormatSpec instantiation in main(). 14 static assert(is(typeof(ba.toString()))); 15 } 16 17 // The instance codegen should be run always, unrelated with -version=A. 18 FormatSpec!char fs; 19 fs.func(); 20 } 21