Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / strings / string.view / string_view.literals / literal.verify.cpp
bloba5b1d4d6a31cb90b905ecde9f0eac466fd308d33
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // Note: libc++ supports string_view before C++17, but literals were introduced in C++14
10 // UNSUPPORTED: c++03, c++11
11 // UNSUPPORTED: !stdlib=libc++ && c++14
13 #include <string_view>
15 void f() {
17 using std::string_view;
18 string_view foo = ""sv; // expected-error {{no matching literal operator}}
21 std::string_view foo = ""sv; // expected-error {{no matching literal operator}}