]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/test60.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / test60.d
1 import std.stdio;
2 import std.algorithm;
3
4 void test1()
5 {
6 int[] a = [1,2,3,4,5];
7 writeln( remove!("a < 3")(a) );
8 }
9
10 void test2()
11 {
12 auto arr = [1,2,3,4,5];
13 auto m = map!"a + 1"(filter!"a < 4"(arr));
14 }
15
16 void main()
17 {
18 test1();
19 test2();
20
21 writeln("Success");
22 }