Debian Codegraph @

libstdc++-v3/testsuite/23_containers/vector/bool/110807.cc

raw
1 // { dg-options "-O2" }
2 // { dg-do compile { target c++11 } }
3
4 // Bug 110807
5 // Copy list initialisation of a vector<bool> raises a warning with -O2
6
7 #include <vector>
8
9 std::vector<bool> byCallSpread;
10
11 void f()
12 {
13 byCallSpread = {true};
14 }