Debian Codegraph @

gcc/testsuite/gdc.dg/pr96924.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96924
2 // { dg-do compile }
3
4 struct Memo
5 {
6 string source;
7 this(this);
8 }
9
10 void compile(string src, size_t end)
11 {
12 Memo[] stack;
13 stack ~= Memo(src[end .. $]);
14 }