Teach googletest to use raw_ostream instead of just std::ostream.

This can break when there are implicit conversions from types raw_ostream
understands but std::ostream doesn't, but it increases the number of cases that
Just Work.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81093 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeffrey Yasskin
2009-09-05 18:16:17 +00:00
parent 5db3084b69
commit 9c0c3bf1ec
3 changed files with 26 additions and 8 deletions

View File

@@ -16,13 +16,6 @@ using namespace llvm;
namespace {
// Support APInt output to an std::ostream.
inline std::ostream &operator<<(std::ostream &OS, const APInt &Value) {
raw_os_ostream RawOS(OS);
RawOS << Value;
return OS;
}
class ConstantRangeTest : public ::testing::Test {
protected:
static ConstantRange Full;