gcc/testsuite/g++.dg/opt/pr23372.C
raw| 1 | // PR c++/23372 |
| 2 | // { dg-options -fdump-tree-gimple } |
| 3 | |
| 4 | // There shouldn't be an assignment to a temporary in the GIMPLE, |
| 5 | // as that represents a redundant copy. |
| 6 | // { dg-final { scan-tree-dump-not "=" gimple } } |
| 7 | |
| 8 | struct A { |
| 9 | int a[1000]; |
| 10 | //A(A const &); |
| 11 | }; |
| 12 | void f(A); |
| 13 | void g(A *a) { f(*a); } |
| 14 |