| 1 |
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96157 |
| 2 |
// { dg-options "-fno-moduleinfo -fno-rtti" } |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
struct CodepointSet |
| 6 |
{ |
| 7 |
CowArray!string data; |
| 8 |
} |
| 9 |
|
| 10 |
struct CowArray(SP) |
| 11 |
{ |
| 12 |
~this() |
| 13 |
{ |
| 14 |
if (data.length) |
| 15 |
refCount; |
| 16 |
} |
| 17 |
@property refCount() { return data[$-1]; } |
| 18 |
|
| 19 |
uint[] data; |
| 20 |
} |
| 21 |
|
| 22 |
int ucmp() { return 1; } |
| 23 |
|
| 24 |
bool loadProperty () { |
| 25 |
|
| 26 |
CodepointSet target; |
| 27 |
if (ucmp) |
| 28 |
CodepointSet(); |
| 29 |
else if (ucmp|| ucmp) |
| 30 |
target = CodepointSet(); |
| 31 |
else if (ucmp|| ucmp) |
| 32 |
target = CodepointSet(); |
| 33 |
else if (ucmp|| ucmp) |
| 34 |
target = CodepointSet(); |
| 35 |
else if (ucmp) |
| 36 |
target = CodepointSet(); |
| 37 |
else if (ucmp) |
| 38 |
target = CodepointSet(); |
| 39 |
return true; |
| 40 |
} |