From 1f21000902ae51f79af6a291e3a4b0660bbca08d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 24 Dec 2009 21:11:45 +0000 Subject: Define the new operator<< for sets into namespace std, so that argument-dependent lookup can find it. This is another case where an LLVM bug (not making operator<< visible) was masked by a GCC bug (looking in the global namespace when it shouldn't). llvm-svn: 92144 --- llvm/unittests/ADT/DeltaAlgorithmTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/unittests/ADT/DeltaAlgorithmTest.cpp') diff --git a/llvm/unittests/ADT/DeltaAlgorithmTest.cpp b/llvm/unittests/ADT/DeltaAlgorithmTest.cpp index 3628922..a1884cd 100644 --- a/llvm/unittests/ADT/DeltaAlgorithmTest.cpp +++ b/llvm/unittests/ADT/DeltaAlgorithmTest.cpp @@ -13,6 +13,8 @@ #include using namespace llvm; +namespace std { + std::ostream &operator<<(std::ostream &OS, const std::set &S) { OS << "{"; @@ -26,6 +28,8 @@ std::ostream &operator<<(std::ostream &OS, return OS; } +} + namespace { class FixedDeltaAlgorithm : public DeltaAlgorithm { -- cgit v1.1