2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr23372.C
blob1fa60dc83472fe117a5bb0a14dce6660106bbbae
1 // PR c++/23372
2 // { dg-options -fdump-tree-gimple }
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 } }
8 struct A {
9   int a[1000];
10   //A(A const &);
12 void f(A);
13 void g(A *a) { f(*a); }