Home | History | Annotate | Download | only in courgette

Lines Matching full:program

12   // Create a simple program with a few addresses and references and
15 courgette::EncodedProgram* program = new courgette::EncodedProgram();
18 program->set_image_base(base);
20 EXPECT_TRUE(program->DefineRel32Label(5, 0)); // REL32 index 5 == base + 0
21 EXPECT_TRUE(program->DefineAbs32Label(7, 4)); // ABS32 index 7 == base + 4
22 program->EndLabels();
24 EXPECT_TRUE(program->AddOrigin(0)); // Start at base.
25 EXPECT_TRUE(program->AddAbs32(7));
26 EXPECT_TRUE(program->AddRel32(5));
31 EXPECT_TRUE(program->WriteTo(&sinks));
32 delete program;