indent the base list
[lqt.git] / test / noqt / n3
blob24aab18f4aadc5fab677fc4d74a3ca095ec78842
1 #ifndef AA
2 #define AA
4 #include <iostream>
5 #include <vector>
6 #include <cstdio>
9 typedef std::vector<void*> ASomething;
11 class C {
12 private:
13 ~C() {}
16 namespace test {
17 class A
19  public:
20  A() { std::cerr << "A::A" << std::endl; }
21  ~A() { std::cerr << "A::~A" << std::endl; }
24  const std::string & get_string(const std::string& a="") {return a;}
25  void doFunc() { std::cout << "A::doFunc()" << std::endl; func(); }
26  virtual void func() { std::cout << "A::func()" << std::endl;  }
28  class B
29  {
30    public:
32    B() { std::cout << "B::B" << std::endl; }
33   ~B() { std::cout << "B::~B" << std::endl; }
35    void do_something() { std::cout << "B::do_something()" << std::endl; }
37  };
39  void useB(B* b) { b->do_something();
40   } 
44 #endif