summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/initlist67.C
blob: 491d4cf0636952efb3377ed085d97e744d46a096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// PR c++/50478
// { dg-do compile { target c++11 } }

#include <initializer_list>

namespace std
{
  template<typename _Key>
    struct set
    {
      void insert(const _Key&);
      void insert(initializer_list<_Key>);
    };

  struct string
  {
    string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1);
    string(const char*);
    string(initializer_list<char>);
  };
}

int main()
{
  std::set<std::string> s;
  s.insert( { "abc", "def", "hij"} );
}
OpenPOWER on IntegriCloud