aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/link13400.d
blob: 3fc4dfb0b2e5f268b4e40fb9446a058c57d0e8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// COMPILE_SEPARATELY:
// EXTRA_SOURCES: imports/link13400a.d

import imports.link13400a;

void main()
{
    BigInt r;

    // This comparison will instantiate BigInt.opEquals!().opEquals(const BigInt y) const pure again.
    // But here is non-speculative context, so this module compilation should generate its objcode.
    bool b = r == BigInt("2");  // comparison with rvalue
}