Simplify, now that gtest supports raw_ostream directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-09-06 02:31:26 +00:00
parent 8f78a58e14
commit 46e124668a
2 changed files with 0 additions and 9 deletions

View File

@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
#include <ostream>
#include "llvm/Support/raw_os_ostream.h"
#include "gtest/gtest.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SmallString.h"
@ -17,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;
}
// Test that APInt shift left works when bitwidth > 64 and shiftamt == 0
TEST(APIntTest, ShiftLeftByZero) {
APInt One = APInt::getNullValue(65) + 1;

View File

@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/ConstantRange.h"
#include "llvm/Support/raw_os_ostream.h"
#include "gtest/gtest.h"