Daily bump.
[official-gcc.git] / libvtv / testsuite / libvtv.cc / parts-test-main.cpp
bloba0cc721abf5860200d41fc87ca069a0f3aebb2f8
1 // { dg-do run }
3 #include "parts-test-main.h"
4 #include "parts-test-extra-parts-views.h"
6 MainParts::MainParts () {}
8 MainParts::~MainParts ()
10 for (int i = static_cast<int>(main_extra_parts_.size()) - 1; i >= 0; --i)
11 delete main_extra_parts_[i];
12 main_extra_parts_.clear();
15 void
16 MainParts::AddParts (ExtraParts *parts)
18 main_extra_parts_.push_back (parts);
22 void
23 MainParts::PreEarlyInitialization (void)
25 for (int i = 0; i < main_extra_parts_.size(); ++i)
26 main_extra_parts_[i]->PreEarlyInitialization ();
30 int
31 main (int argc, char **argv)
33 MainParts *main_parts = new MainParts ();
35 main_parts->AddParts (new ExtraPartsViews ());
36 main_parts->PreEarlyInitialization ();
38 return 0;