~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/tests/misc/test22.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Virtual inheritance structure:
 
2
//
 
3
//        A::f
 
4
//       /  /
 
5
//    B::f /
 
6
//    / \ /
 
7
//  C::f D
 
8
//    \ /
 
9
//     E
 
10
 
 
11
 
 
12
struct A {
 
13
  void f();
 
14
};
 
15
 
 
16
struct B : virtual public A {
 
17
  void f();
 
18
};
 
19
 
 
20
struct C : virtual public B {
 
21
  void f();
 
22
};
 
23
 
 
24
struct D : virtual public A, virtual public B {};
 
25
 
 
26
struct E : virtual public D, virtual public C {};
 
27
 
 
28
void g() {
 
29
  E *e;
 
30
  e->f();  // => C::f()
 
31
}