Mark namespaces for user defined literals as 'inline'

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@192047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2013-10-05 21:18:32 +00:00
parent 1d927e38d1
commit 8d9dd7a968
8 changed files with 173 additions and 12 deletions

View File

@@ -13,9 +13,9 @@
int main()
{
#if _LIBCPP_STD_VER > 11
using namespace std;
using std::string;
std::string foo = ""s; // should fail w/conversion operator not found
string foo = ""s; // should fail w/conversion operator not found
#else
#error
#endif

View File

@@ -0,0 +1,20 @@
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <string>
#include <cassert>
int main()
{
#if _LIBCPP_STD_VER > 11
using namespace std;
string foo = ""s;
#endif
}