gcc/testsuite/gdc.test/runnable/link13400.d
raw| 1 | // COMPILE_SEPARATELY: |
| 2 | // EXTRA_SOURCES: imports/link13400a.d |
| 3 | |
| 4 | import imports.link13400a; |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | BigInt r; |
| 9 | |
| 10 | // This comparison will instantiate BigInt.opEquals!().opEquals(const BigInt y) const pure again. |
| 11 | // But here is non-speculative context, so this module compilation should generate its objcode. |
| 12 | bool b = r == BigInt("2"); // comparison with rvalue |
| 13 | } |