Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/pr77844.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR debug/77844 // { dg-do compile } // { dg-options "-O3 -g" } #include <vector> void foo (std::vector<bool>& v, int i, int j) { for (int k = 0; k < 5; ++k) v[5 * i + k] = v[5 * i + k] | v[5 * j + k]; } void bar (std::vector<bool>& v, int i, int j) { for (int k = 0; k < 5; ++k) v[5 * i + k] = v[5 * i + k] ^ v[5 * j + k]; } void baz (std::vector<bool>& v) { foo (v, 4, 1); foo (v, 4, 2); foo (v, 4, 3); foo (v, 4, 4); bar (v, 4, 1); bar (v, 4, 2); bar (v, 4, 3); bar (v, 4, 4); }