[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / strings / string.view / string_view.literals / literal2.pass.cpp
blob0da751e72c3559eb703555ca3b8d46cfce84d4be
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++03, c++11
12 // Note: libc++ supports string_view before C++17, but literals were introduced in C++14
14 #include <string_view>
15 #include <cassert>
17 #include "test_macros.h"
19 int main(int, char**)
21 using namespace std::literals::string_view_literals;
23 std::string_view foo = ""sv;
24 assert(foo.length() == 0);
26 return 0;