summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-24 21:11:45 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-24 21:11:45 +0000
commit1f21000902ae51f79af6a291e3a4b0660bbca08d (patch)
tree0308ff750caf6543c67a4675fb09b32b04276e20
parent33636e66c7a7744b044117d904fb08e0abcc6bb2 (diff)
downloadbcm5719-llvm-1f21000902ae51f79af6a291e3a4b0660bbca08d.tar.gz
bcm5719-llvm-1f21000902ae51f79af6a291e3a4b0660bbca08d.zip
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
-rw-r--r--llvm/unittests/ADT/DeltaAlgorithmTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/DeltaAlgorithmTest.cpp b/llvm/unittests/ADT/DeltaAlgorithmTest.cpp
index 362892207f5..a1884cd8f3a 100644
--- a/llvm/unittests/ADT/DeltaAlgorithmTest.cpp
+++ b/llvm/unittests/ADT/DeltaAlgorithmTest.cpp
@@ -13,6 +13,8 @@
#include <cstdarg>
using namespace llvm;
+namespace std {
+
std::ostream &operator<<(std::ostream &OS,
const std::set<unsigned> &S) {
OS << "{";
@@ -26,6 +28,8 @@ std::ostream &operator<<(std::ostream &OS,
return OS;
}
+}
+
namespace {
class FixedDeltaAlgorithm : public DeltaAlgorithm {
OpenPOWER on IntegriCloud