gcc/testsuite/gdc.test/runnable/link15021.d
raw| 1 | // PERMUTE_ARGS: -inline -g -debug -unittest |
| 2 | // EXTRA_FILES: imports/std15021conv.d |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | hit! |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | import imports.std15021conv; |
| 11 | |
| 12 | class AliasDecl {} |
| 13 | |
| 14 | void aliasDecl(AliasDecl ad) |
| 15 | { |
| 16 | AliasDecl* zis = &ad; |
| 17 | |
| 18 | static if (is(typeof(to!string(*zis)))) |
| 19 | { |
| 20 | pragma(msg, "hit!"); |
| 21 | to!string(*zis); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void main() {} |