mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-24 08:29:39 +00:00
Unbreak unit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
566902bc2f
commit
2571440d1e
@ -17,6 +17,13 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
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 that APInt shift left works when bitwidth > 64 and shiftamt == 0
|
||||||
TEST(APIntTest, ShiftLeftByZero) {
|
TEST(APIntTest, ShiftLeftByZero) {
|
||||||
APInt One = APInt::getNullValue(65) + 1;
|
APInt One = APInt::getNullValue(65) + 1;
|
||||||
|
@ -16,6 +16,13 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
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 {
|
class ConstantRangeTest : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
static ConstantRange Full;
|
static ConstantRange Full;
|
||||||
|
Loading…
Reference in New Issue
Block a user