[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / test / runtime / Inputs / fptr.c
blobc4370e89bfd21ee39ee2e263ce80a26f696dbf6d
1 // Make sure all printed values are the same and are updated after BOLT.
3 #include <stdio.h>
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);
18 return 0;