added some tests to noqt
[lqt.git] / test / noqt / n3
blob94e441a06dd7e419ddf8e8daa490530b956767ca
1 #ifndef AA
2 #define AA
4 #include <iostream>
5 #include <vector>
6 #include <cstdio>
9 #include <cassert>
11 namespace N {
13   class Shape {
14   public:
15   Shape() {}
16   };
18   class Sphere : public Shape
19   {
20   public:
21   Sphere() {}
22   };
24   class Geometry {
25   public:
26     Geometry(Shape *shape) { assert(shape); }
27     void add(Shape *shape) { assert(shape); }
28   };
35 typedef std::vector<void*> ASomething;
37 class C {
38 private:
39 ~C() {}
42 namespace test {
43 class A
45  public:
46  A() { std::cerr << "A::A" << std::endl; }
47  ~A() { std::cerr << "A::~A" << std::endl; }
50  const std::string & get_string(const std::string& a="") {return a;}
51  void doFunc() { std::cout << "A::doFunc()" << std::endl; func(); }
52  virtual void func() { std::cout << "A::func()" << std::endl;  }
54  class B
55  {
56    public:
58    B() { std::cout << "B::B" << std::endl; }
59   ~B() { std::cout << "B::~B" << std::endl; }
61    void do_something() { std::cout << "B::do_something()" << std::endl; }
63  };
65  void useB(B* b) { b->do_something();
66   } 
70 #endif