]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/b6395.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / b6395.d
CommitLineData
b4c522fa
IB
1// REQUIRED_ARGS: -Icompilable/extra-files
2// EXTRA_FILES: extra-files/c6395.d
3
5fee5ec3 4// https://issues.dlang.org/show_bug.cgi?id=6395
b4c522fa
IB
5
6import c6395;
7
8int regex(string pattern)
9{
10 return 0;
11}
12
13bool match(string r)
14{
15 return true;
16}
17
18void applyNoRemoveRegex()
19{
20 void scan(string[] noRemoveStr, string e)
21 {
22 auto a = find!((a){return match(e);})(map!regex(noRemoveStr));
23 }
24}
25