Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/pr109442.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-O2 -fdump-tree-optimized" }
3 #include <vector>
4 #define T int
5 T vat1(std::vector<T> v1) {
6 auto v = v1;
7 return 10;
8 }
9 // This should compile to empty function; check that no size of
10 // vector is determined and there is no allocation
11 // { dg-final { scan-tree-dump-not "_M_start" "optimized" } }
12 // { dg-final { scan-tree-dump-not "delete" "optimized" } }