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