1/* { dg-options "-O2 -fgraphite-identity -fno-tree-ch" } */
2#include <vector>
3
4using std::vector;
5
6vector<unsigned> & __attribute__((noinline, noclone)) foo(unsigned n)
7{
8  vector<unsigned> *vv = new vector<unsigned>(n, 0u);
9  return *vv;
10}
11
12int main()
13{
14  foo(0);
15  return 0;
16}
17
18/* { dg-do run  } */
19
20