MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail21508.d
blobda5d8f98f91521da7f4d66043eb549557d2205c3
1 /*
2 REQUIRED_ARGS: -Ifail_compilation/imports/
3 EXTRA_FILES: imports/import21508.d
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail21508.d(17): Error: import `fail21508.import21508` is used as a type
7 ---
8 */
9 import import21508;
11 // import21508 is a private class, code should not compile
12 // The compiler used to "helpfully" look inside the import,
13 // bypassing the shadowing that this introduces.
15 void main ()
17 auto c = new import21508();