1 // Make sure all printed values are the same and are updated after BOLT.
5 int main(int argc
, char *argv
[]);
7 unsigned long Global
= (unsigned long)main
+ 0x7fffffff;
9 int main(int argc
, char *argv
[]) {
11 unsigned long Local
= (unsigned long)&main
+ 0x7fffffff;
12 unsigned long Local2
= &main
+ 0x7fffffff;
14 printf("Global = 0x%lx\n", Global
);
15 printf("Local = 0x%lx\n", Local
);
16 printf("Local2 = 0x%lx\n", Local2
);