1152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// -*- C++ -*- 2152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow//===----------------------------------------------------------------------===// 3152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// 4152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// The LLVM Compiler Infrastructure 5152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// 6152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// This file is dual licensed under the MIT and the University of Illinois Open 7152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// Source Licenses. See LICENSE.TXT for details. 8152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow// 9152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow//===----------------------------------------------------------------------===// 10152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#include <string> 11152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#include <cassert> 12152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow 13152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clowint main() 14152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow{ 15152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#if _LIBCPP_STD_VER > 11 168d9dd7a968ce810c02c67c94a0eb9fbe5733d70bMarshall Clow using std::string; 17152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow 188d9dd7a968ce810c02c67c94a0eb9fbe5733d70bMarshall Clow string foo = ""s; // should fail w/conversion operator not found 19152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#else 20152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#error 21152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow#endif 22152343260ff7f050efc9e76140524320c7c5e2b8Marshall Clow} 23