llvm.org GIT mirror llvm / bde0f0f
Untabify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173235 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2626 static uint8_t tail[22] = "s02s33s30y2y0s1x0syxS";
2727 Value * values[22];
2828 std::transform(tail, tail + 22, values, char2constant);
29 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true);
29 FunctionType *FT = FunctionType::get(Type::getVoidTy(getGlobalContext()), true);
3030 Function *F = Function::Create(FT, GlobalValue::ExternalLinkage);
31 const CallInst *A = CallInst::Create(F, makeArrayRef(values));
31 const CallInst *A = CallInst::Create(F, makeArrayRef(values));
3232 ASSERT_NE(A, (const CallInst*)NULL);
3333 ASSERT_EQ(1U + 22, A->getNumOperands());
34 const Use *U = &A->getOperandUse(0);
35 const Use *Ue = &A->getOperandUse(22);
34 const Use *U = &A->getOperandUse(0);
35 const Use *Ue = &A->getOperandUse(22);
3636 for (; U != Ue; ++U)
3737 {
3838 EXPECT_EQ(A, U->getUser());
4242 TEST(WaymarkTest, TwoBit) {
4343 Use* many = (Use*)calloc(sizeof(Use), 8212 + 1);
4444 ASSERT_TRUE(many);
45 Use::initTags(many, many + 8212);
45 Use::initTags(many, many + 8212);
4646 for (Use *U = many, *Ue = many + 8212 - 1; U != Ue; ++U)
4747 {
4848 EXPECT_EQ(reinterpret_cast(Ue + 1), U->getUser());