blob: a8ca4ed5cb6db9b1d48c496d59aab5492db2db51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// { dg-do link { target d_runtime } }
/******************************************/
class C1()
{
static struct S1 { A1 a; }
}
enum E1 = is(C1!());
/******************************************/
// https://bugzilla.gdcproject.org/show_bug.cgi?id=300
struct S300(Range)
{
double test(size_t remaining)
{
double r;
return r ^^ remaining;
}
}
auto link300a(Range)(Range)
{
return S300!(Range)();
}
void link300()
{
struct I {}
static assert(is(typeof(link300a(I())) == struct));
auto sample = link300a(I());
sample.test(5);
}
/******************************************/
void main() {}
|