diff options
author | Fangrui Song <i@maskray.me> | 2022-08-11 17:35:02 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-08-11 17:35:02 +0000 |
commit | 1ca5fee2285de6e81d52a38de5cfdbe3a7a79f74 (patch) | |
tree | 8ab8d2d6650cda32fe3a6cea88f4b991652b75a3 /llvm/unittests/ADT/StringRefTest.cpp | |
parent | 99baa10f8f01f5c054d259182b24ae04ae57101d (diff) | |
download | llvm-1ca5fee2285de6e81d52a38de5cfdbe3a7a79f74.zip llvm-1ca5fee2285de6e81d52a38de5cfdbe3a7a79f74.tar.gz llvm-1ca5fee2285de6e81d52a38de5cfdbe3a7a79f74.tar.bz2 |
[Support] Remove some #if __cplusplus > 201402L
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringRefTest.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index ac73458..25cd3cd 100644 --- a/llvm/unittests/ADT/StringRefTest.cpp +++ b/llvm/unittests/ADT/StringRefTest.cpp @@ -59,16 +59,12 @@ TEST(StringRefTest, Construction) { EXPECT_EQ("hello", StringRef("hello")); EXPECT_EQ("hello", StringRef("hello world", 5)); EXPECT_EQ("hello", StringRef(std::string("hello"))); -#if __cplusplus > 201402L EXPECT_EQ("hello", StringRef(std::string_view("hello"))); -#endif } TEST(StringRefTest, Conversion) { EXPECT_EQ("hello", std::string(StringRef("hello"))); -#if __cplusplus > 201402L EXPECT_EQ("hello", std::string_view(StringRef("hello"))); -#endif } TEST(StringRefTest, EmptyInitializerList) { |