aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-11 17:35:02 +0000
committerFangrui Song <i@maskray.me>2022-08-11 17:35:02 +0000
commit1ca5fee2285de6e81d52a38de5cfdbe3a7a79f74 (patch)
tree8ab8d2d6650cda32fe3a6cea88f4b991652b75a3 /llvm/unittests/ADT/StringRefTest.cpp
parent99baa10f8f01f5c054d259182b24ae04ae57101d (diff)
downloadllvm-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.cpp4
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) {