gcc/testsuite/gdc.test/runnable/template13478.d
raw| 1 | // EXTRA_FILES: imports/template13478a.d imports/template13478b.d |
| 2 | |
| 3 | /// Tests emission of templates also referenced in speculative contexts. |
| 4 | /// Failure triggered with -inline. |
| 5 | module template13478; |
| 6 | |
| 7 | import imports.template13478a; |
| 8 | import imports.template13478b; |
| 9 | |
| 10 | int main() { |
| 11 | return foo!int(); |
| 12 | } |