aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/ADT
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
commite4d4c43cc8f446d63ba3b0e94894f0934c4a9a99 (patch)
treeeeecbf5d54e3d9951e29f62c78e0ff3a9c3c883b /unittests/ADT
parent96a47829c8ff6fff2d72e9ab8e6153b4ab90824d (diff)
downloadexternal_llvm-e4d4c43cc8f446d63ba3b0e94894f0934c4a9a99.zip
external_llvm-e4d4c43cc8f446d63ba3b0e94894f0934c4a9a99.tar.gz
external_llvm-e4d4c43cc8f446d63ba3b0e94894f0934c4a9a99.tar.bz2
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT')
-rw-r--r--unittests/ADT/DeltaAlgorithmTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/ADT/DeltaAlgorithmTest.cpp b/unittests/ADT/DeltaAlgorithmTest.cpp
index 3628922..a1884cd 100644
--- a/unittests/ADT/DeltaAlgorithmTest.cpp
+++ b/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 {