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

« back to all changes in this revision

Viewing changes to AspectC++/tests/Slice/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:
20
20
    void enter_advice () {
21
21
      _in_advice = true;
22
22
    }
 
23
    void enter_advice2 () {
 
24
      _in_advice = true;
 
25
    }
23
26
    bool in_advice () const { return _in_advice; }
24
27
    void leave_advice ();
25
28
};
35
38
  void global ();
36
39
};
37
40
 
 
41
class WithBase : public SomeBase1 {};
 
42
 
38
43
namespace Puma {
39
44
  slice class Bla;
40
45
}
48
53
  printf ("in: %d\n", x.in_advice ());
49
54
  x.leave_advice ();
50
55
  printf ("in: %d\n", x.in_advice ());
 
56
  x.g (); // from DefinedLater
51
57
  printf ("==========================================\n");
52
58
};
53
59
 
56
62
aspect Foo {
57
63
  advice "Puma::XXX" : baseclass (SomeBase1);
58
64
  advice "Puma::XXX" : slice class U : public SomeBase3;
 
65
  advice "WithBase"  : slice struct : SomeBase2;
59
66
 
60
67
  advice "Puma::XXX" : slice Puma::Bla;
61
68
 
96
103
 
97
104
slice struct Foo::Later2 { int _later2; };
98
105
 
99
 
slice class DefinedLater { int _def_later; void g (); };
 
106
slice class DefinedLater { int _def_later; public: void g (); };
100
107
 
101
108
slice void DefinedLater::g () {}
102
109