diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/compilable/test16013b.d')
-rw-r--r-- | gcc/testsuite/gdc.test/compilable/test16013b.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/compilable/test16013b.d b/gcc/testsuite/gdc.test/compilable/test16013b.d new file mode 100644 index 00000000000..97a58e32c59 --- /dev/null +++ b/gcc/testsuite/gdc.test/compilable/test16013b.d @@ -0,0 +1,13 @@ +// https://issues.dlang.org/show_bug.cgi?id=16013 + +S s; /* Only this line has changed from above. */ + +struct RefCounted +{ + void opAssign(RefCounted rhs) {} + void opAssign(S rhs) {} + S refCountedPayload() { return S.init; } + alias refCountedPayload this; +} + +struct S { RefCounted s; } |