diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2013-07-23 17:05:24 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2013-07-23 17:05:24 +0000 |
| commit | ca0be23b39df3255ff5272b5c3d9442aee7584b2 (patch) | |
| tree | 234aa8dbf64d3d15ceb52dbf245d9d9cda8e85d4 /libcxx/test/strings/basic.string.literals/literal1.pass.cpp | |
| parent | 43295c02f1df12f53939718722881291a351d228 (diff) | |
| download | bcm5719-llvm-ca0be23b39df3255ff5272b5c3d9442aee7584b2.tar.gz bcm5719-llvm-ca0be23b39df3255ff5272b5c3d9442aee7584b2.zip | |
Implement string suffixes from N3642
llvm-svn: 186956
Diffstat (limited to 'libcxx/test/strings/basic.string.literals/literal1.pass.cpp')
| -rw-r--r-- | libcxx/test/strings/basic.string.literals/literal1.pass.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/strings/basic.string.literals/literal1.pass.cpp b/libcxx/test/strings/basic.string.literals/literal1.pass.cpp new file mode 100644 index 00000000000..adc2615f249 --- /dev/null +++ b/libcxx/test/strings/basic.string.literals/literal1.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::literals; + + std::string foo = ""s; +#endif +} |

