gcc/testsuite/gdc.dg/copy1.d
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-fno-moduleinfo -fdump-tree-original" } |
| 3 | struct S |
| 4 | { |
| 5 | int i; |
| 6 | this(ref S); |
| 7 | void opAssign(S s) |
| 8 | { |
| 9 | i = s.i + 1; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | void test_opAssign() |
| 14 | { |
| 15 | S s; |
| 16 | S t; |
| 17 | // { dg-final { scan-tree-dump-not "&TARGET_EXPR" "original" } } |
| 18 | t = s; |
| 19 | } |