| 1 |
// This is a runnable test as we are testing a linker error |
| 2 |
|
| 3 |
// https://issues.dlang.org/show_bug.cgi?id=18973 |
| 4 |
struct X { |
| 5 |
@disable size_t toHash() const; |
| 6 |
@disable string toString() const; |
| 7 |
@disable bool opEquals(const ref X) const; |
| 8 |
@disable int opCmp(const ref X) const; |
| 9 |
} |
| 10 |
|
| 11 |
// https://issues.dlang.org/show_bug.cgi?id=9161 |
| 12 |
public struct dummy |
| 13 |
{ |
| 14 |
static auto opCall(C)(in C[] name) |
| 15 |
{ |
| 16 |
return name; |
| 17 |
} |
| 18 |
|
| 19 |
@disable ~this(); //comment this out to avoid error |
| 20 |
} |
| 21 |
|
| 22 |
void main() |
| 23 |
{ |
| 24 |
assert(dummy("ABCDE") == "ABCDE"); |
| 25 |
} |