| 1 |
// https://issues.dlang.org/show_bug.cgi?id=19227 |
| 2 |
// REQUIRED_ARGS: -verrors=simple |
| 3 |
/* TEST_OUTPUT: |
| 4 |
--- |
| 5 |
compilable/test19227.d(17): Deprecation: use of complex type `cfloat` is deprecated, use `std.complex.Complex!(float)` instead |
| 6 |
Deprecation: use of complex type `const(cfloat)` is deprecated, use `std.complex.Complex!(float)` instead |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
struct S |
| 11 |
{ |
| 12 |
float f; |
| 13 |
} |
| 14 |
|
| 15 |
struct T |
| 16 |
{ |
| 17 |
cfloat cf; |
| 18 |
} |
| 19 |
|
| 20 |
void main() |
| 21 |
{ |
| 22 |
static assert(S.init is S.init); |
| 23 |
static assert(S.init != S.init); |
| 24 |
|
| 25 |
static assert(T.init is T.init); |
| 26 |
static assert(T.init != T.init); |
| 27 |
} |