]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/compilable/test17349.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test17349.d
1
2 /* REQUIRED_ARGS:
3 PERMUTE_ARGS:
4 */
5
6 // https://issues.dlang.org/show_bug.cgi?id=16538
7
8 const(int) retConst1();
9 int retConst2();
10 auto retConst = [&retConst1, &retConst2];
11
12 const(int*) retConstPtr1();
13 const(int)* retConstPtr2();
14 auto retConstPtr = [&retConstPtr1, &retConstPtr2];
15
16 void constArray1(const(int)[1]);
17 void constArray2(const(int[1]));
18 auto constArray = [&constArray1, &constArray2];
19
20 const(int)[] retConstSlice1();
21 const(int[]) retConstSlice2();
22 auto retConstSlice = [&retConstSlice1, &retConstSlice2];
23
24 void constSlice1(const(int)[]);
25 void constSlice2(const(int[]));
26 auto constSlice = [&constSlice1, &constSlice2];
27
28 void ptrToConst1(const(int)*);
29 void ptrToConst2(const(int*));
30 auto ptrToConst = [&ptrToConst1, &ptrToConst2];