-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace A { | ||
class aa { | ||
public: | ||
virtual int doStuff() __attribute__((annotate("realtime"))) {return 1;} | ||
}; | ||
} | ||
|
||
namespace B { | ||
class bb: public A::aa{ | ||
public: | ||
int doStuff() __attribute__((annotate("realtime"))) {return 2;} | ||
}; | ||
} | ||
|
||
class cc:public B::bb | ||
{ | ||
public: | ||
int doStuff() __attribute__((annotate("non-realtime"))) {return 3;} | ||
}; | ||
|
||
int main() __attribute__((annotate("realtime"))) | ||
{ | ||
B::bb *B = new cc; | ||
B->doStuff(); | ||
return 0; | ||
} |