]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/link10920.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / link10920.d
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
7 void 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 }