gcc/testsuite/g++.dg/tree-ssa/bvector-3.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O2 -fdump-tree-optimized" } |
| 3 | // { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } |
| 4 | |
| 5 | #include <vector> |
| 6 | bool f(const std::vector<bool>& v, std::size_t x) { |
| 7 | return v[x]; |
| 8 | } |
| 9 | // All references to src should be optimized out, so there should be no name for it |
| 10 | // { dg-final { scan-tree-dump-not "if \\(" optimized } } |