summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/pr91238.d
blob: 26efb9062124858881ede3c52e646fedaff28684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91238
// { dg-do compile }

alias T = const(char)*;

T name()
{
    return "";
}

void collect(ref T)
{
}

void configure(T[T] targets)
{
    collect(targets[name]);
}