diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-10-05 21:18:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-10-05 21:18:32 +0000 |
commit | 3ceafc7f0152bd9e41e5adbafd0a8a8af418f08d (patch) | |
tree | 90f35f5c736690e54a2ab63203a43e6e9d262f9a /libcxx/test/strings/basic.string.literals/literal3.pass.cpp | |
parent | c81e29435ab4ea1e44c6b8301bae3e4bdef821d9 (diff) | |
download | bcm5719-llvm-3ceafc7f0152bd9e41e5adbafd0a8a8af418f08d.tar.gz bcm5719-llvm-3ceafc7f0152bd9e41e5adbafd0a8a8af418f08d.zip |
Mark namespaces for user defined literals as 'inline'
llvm-svn: 192047
Diffstat (limited to 'libcxx/test/strings/basic.string.literals/literal3.pass.cpp')
-rw-r--r-- | libcxx/test/strings/basic.string.literals/literal3.pass.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/strings/basic.string.literals/literal3.pass.cpp b/libcxx/test/strings/basic.string.literals/literal3.pass.cpp new file mode 100644 index 00000000000..98e3e40e058 --- /dev/null +++ b/libcxx/test/strings/basic.string.literals/literal3.pass.cpp @@ -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 +} |