aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/pr23372.C
blob: 9be4c9c568db153b5f0cc58bcd7f461c48b7aa9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/23372
// { dg-options -fdump-tree-gimple }

// There shouldn't be an assignment to a temporary in the GIMPLE,
// as that represents a redundant copy.
// { dg-final { scan-tree-dump-not "=" gimple } }

struct A {
  int a[1000];
  //A(A const &);
};
void f(A);
void g(A *a) { f(*a); }

// { dg-final { cleanup-tree-dump gimple } }