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