aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C
blob: eec7d340fd1f07aa52e25565e3196f636bfb5c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/108195
// { dg-do run { target c++11 } }

#include <vector>

struct S
{
  S(bool) {}
};

int main()
{
  std::vector<S> v = { true, false, true };
  if (v.size() != 3)
    __builtin_abort ();
}