aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/test7494.d
blob: 655d00a9ffa918bc13c4da48184703c79c99e65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// COMPILE_SEPARATELY
// EXTRA_SOURCES: imports/test7494a.d
// PERMUTE_ARGS:
// REQUIRED_ARGS:

module test7494;

void main()
{
    import imports.test7494a : map;             // selective
    import imports.test7494a : put = writeln;   // selective + rename
    auto r = map!(a=>a)([1,2,3]);
    assert(r == [4,5,6]);
    put(r);
    static assert(!__traits(compiles, foo()));

    import core.bitop : bsr;
    // ^ or just any selective import statements
    bsr(1);
}