| 1 |
// https://issues.dlang.org/show_bug.cgi?id=23169 |
| 2 |
// Issue 23169 - [DIP1000] Mangling does not distinguish return and return scope |
| 3 |
|
| 4 |
struct Ptr |
| 5 |
{ |
| 6 |
int* impl; |
| 7 |
void* fun0() return scope {return impl;} |
| 8 |
void* fun1() scope return {return impl;} |
| 9 |
void* fun2() return {return &this;} |
| 10 |
} |
| 11 |
|
| 12 |
static assert(Ptr.fun0.mangleof == "_D9test231693Ptr4fun0MFNjNlZPv"); |
| 13 |
static assert(Ptr.fun1.mangleof == "_D9test231693Ptr4fun1MFNlNjZPv"); |
| 14 |
static assert(Ptr.fun2.mangleof == "_D9test231693Ptr4fun2MFNjZPv"); |