Debian Codegraph @

gcc/testsuite/gdc.test/compilable/b6395.d

raw
1 // REQUIRED_ARGS: -Icompilable/extra-files
2 // EXTRA_FILES: extra-files/c6395.d
3
4 // https://issues.dlang.org/show_bug.cgi?id=6395
5
6 import c6395;
7
8 int regex(string pattern)
9 {
10 return 0;
11 }
12
13 bool match(string r)
14 {
15 return true;
16 }
17
18 void applyNoRemoveRegex()
19 {
20 void scan(string[] noRemoveStr, string e)
21 {
22 auto a = find!((a){return match(e);})(map!regex(noRemoveStr));
23 }
24 }