PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr77844.C
blob66eb978ddb75a7276a2f05c8b3e695b061a3e2a5
1 // PR debug/77844
2 // { dg-do compile }
3 // { dg-options "-O3 -g" }
5 #include <vector>
7 void
8 foo (std::vector<bool>& v, int i, int j)
10   for (int k = 0; k < 5; ++k)
11     v[5 * i + k] = v[5 * i + k] | v[5 * j + k];
14 void
15 bar (std::vector<bool>& v, int i, int j)
17   for (int k = 0; k < 5; ++k)
18     v[5 * i + k] = v[5 * i + k] ^ v[5 * j + k];
21 void
22 baz (std::vector<bool>& v)
24   foo (v, 4, 1);
25   foo (v, 4, 2);
26   foo (v, 4, 3);
27   foo (v, 4, 4);
28   bar (v, 4, 1);
29   bar (v, 4, 2);
30   bar (v, 4, 3);
31   bar (v, 4, 4);