llvm.org GIT mirror llvm / 46e1246
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 Daniel Dunbar 10 years ago
2 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
77 //===----------------------------------------------------------------------===//
88
99 #include
10 #include "llvm/Support/raw_os_ostream.h"
1110 #include "gtest/gtest.h"
1211 #include "llvm/ADT/APInt.h"
1312 #include "llvm/ADT/SmallString.h"
1514 using namespace llvm;
1615
1716 namespace {
18
19 // Support APInt output to an std::ostream.
20 inline std::ostream &operator<<(std::ostream &OS, const APInt &Value) {
21 raw_os_ostream RawOS(OS);
22 RawOS << Value;
23 return OS;
24 }
2517
2618 // Test that APInt shift left works when bitwidth > 64 and shiftamt == 0
2719 TEST(APIntTest, ShiftLeftByZero) {
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Support/ConstantRange.h"
10 #include "llvm/Support/raw_os_ostream.h"
1110
1211 #include "gtest/gtest.h"
1312