blob: 36b4fe47998e23b369ae05876eb324abf8f744b3 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <string>
// basic_string(initializer_list<charT> il, const Allocator& a = Allocator());
#include <string>
#include <cassert>
#include "../test_allocator.h"
int main()
{
#ifdef _LIBCPP_MOVE
{
std::string s = {'a', 'b', 'c'};
assert(s == "abc");
}
{
std::wstring s;
s = {L'a', L'b', L'c'};
assert(s == L"abc");
}
#endif // _LIBCPP_MOVE
}