diff options
Diffstat (limited to 'gcc/testsuite/gdc.test/fail_compilation/fail11503d.d')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/fail11503d.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail11503d.d b/gcc/testsuite/gdc.test/fail_compilation/fail11503d.d index d1605b27822..30efa8d4258 100644 --- a/gcc/testsuite/gdc.test/fail_compilation/fail11503d.d +++ b/gcc/testsuite/gdc.test/fail_compilation/fail11503d.d @@ -10,7 +10,7 @@ struct Data2 char buffer; } -@property const(char)[] filename(const ref Data2 d) pure nothrow +@property const(char)[] filename(const return ref Data2 d) pure nothrow { return (&d.buffer)[0 .. 1]; } |