~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to AspectC++/tests/Order/main.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:
3
3
// --------------------------- Ordering code ---------------------------
4
4
 
5
5
aspect Order_A1_A2_and_A3 {
6
 
 
7
6
  advice execution("% C1::run2(...)") : order(base ("A3")||"A3","A1"||"A2");
8
7
};
9
8
 
10
9
aspect Order_A1_and_A3 {
11
10
  advice execution("% C1::run2(...)") : order("A3", "A1");
 
11
  advice "C1" : order("A3", "A1"); // order for intros into "C1"
12
12
};
13
13
 
14
14
aspect Order_A2_first {
24
24
  advice execution("void %::run%()") : before() {
25
25
    printf("A1::before\n");
26
26
  }
 
27
  advice "C1" : INT i; // type INT comes from A3 -> A3 needs higher precedence
27
28
};
28
29
 
29
30
aspect A2 {
58
59
  advice jps () : after() {
59
60
    printf("A3::after first\n");
60
61
  }
 
62
  advice "C1" : typedef int INT;
61
63
};
62
64
 
63
65
// ------------------------------- normal C++ ----------------------------