aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/test60.d
blob: cfd92b225ca0bd70c6a8765d10b575471b28cd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUNNABLE_PHOBOS_TEST
import std.stdio;
import std.algorithm;

void test1()
{
    int[] a = [1,2,3,4,5];
    writeln( remove!("a < 3")(a) );
}

void test2()
{
    auto arr = [1,2,3,4,5];
    auto m = map!"a + 1"(filter!"a < 4"(arr));
}

void main()
{
    test1();
    test2();

    writeln("Success");
}