9
static int last_id = -1;
11
printf ("GlobalIds: checks whether a JPID is globally unique\n");
12
printf ("===================================================\n");
13
printf ("IDs are fine if no other message follows.\n", id);
15
else if (last_id != id)
16
printf ("IDs of two translation units differ!\n", id);
21
template <int ID> struct Tester {
25
template <int ID> GlobalMsg Tester<ID>::msg (ID);
28
advice execution ("void f()") : after () {
29
Tester<JoinPoint::JPID>::msg.instantiate = true;