[llvm] r345689 - Try to fix ambiguities with C++17 headers in unittest
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 30 18:30:42 PDT 2018
Author: matze
Date: Tue Oct 30 18:30:41 2018
New Revision: 345689
URL: http://llvm.org/viewvc/llvm-project?rev=345689&view=rev
Log:
Try to fix ambiguities with C++17 headers in unittest
Modified:
llvm/trunk/unittests/ADT/STLExtrasTest.cpp
Modified: llvm/trunk/unittests/ADT/STLExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/STLExtrasTest.cpp?rev=345689&r1=345688&r2=345689&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/STLExtrasTest.cpp (original)
+++ llvm/trunk/unittests/ADT/STLExtrasTest.cpp Tue Oct 30 18:30:41 2018
@@ -365,6 +365,9 @@ TEST(STLExtrasTest, ADLTest) {
}
TEST(STLExtrasTest, EmptyTest) {
+ // Try to avoid ambiguities with C++17 headers.
+ using llvm::empty;
+
std::vector<void*> V;
EXPECT_TRUE(empty(V));
V.push_back(nullptr);
More information about the llvm-commits
mailing list