xref: /minix3/external/bsd/libc++/dist/libcxx/test/std/strings/basic.string.literals/literal2.pass.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // -*- C++ -*-
2*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===//
3*0a6a1f1dSLionel Sambuc //
4*0a6a1f1dSLionel Sambuc //                     The LLVM Compiler Infrastructure
5*0a6a1f1dSLionel Sambuc //
6*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open
7*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details.
8*0a6a1f1dSLionel Sambuc //
9*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===//
10*0a6a1f1dSLionel Sambuc #include <string>
11*0a6a1f1dSLionel Sambuc #include <cassert>
12*0a6a1f1dSLionel Sambuc 
main()13*0a6a1f1dSLionel Sambuc int main()
14*0a6a1f1dSLionel Sambuc {
15*0a6a1f1dSLionel Sambuc #if _LIBCPP_STD_VER > 11
16*0a6a1f1dSLionel Sambuc     using namespace std::literals::string_literals;
17*0a6a1f1dSLionel Sambuc 
18*0a6a1f1dSLionel Sambuc     std::string foo  =   ""s;
19*0a6a1f1dSLionel Sambuc #endif
20*0a6a1f1dSLionel Sambuc }
21