aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr96924.d
blob: 25d9a566fbee461166bed0bba89279da4f78a703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96924
// { dg-do compile }

struct Memo
{
    string source;
    this(this);
}

void compile(string src, size_t end)
{
    Memo[] stack;
    stack  ~= Memo(src[end .. $]);
}