xref: /llvm-project/bolt/test/runtime/fptr.test (revision 79c2fe066d8ab398f41a50b244cf875a1355add1)
1# Make sure BOLT correctly updates values based on function pointer.
2
3RUN: %clang %cflags -Wno-int-conversion -no-pie %p/Inputs/fptr.c -Wl,-q -o %t.exe
4RUN: llvm-bolt %t.exe -o %t --lite=0
5RUN: %t | FileCheck %s
6
7CHECK: Global = 0x[[#%x,ADDR:]]
8CHECK-NEXT: Local = 0x[[#ADDR]]
9CHECK-NEXT: Local2 = 0x[[#ADDR]]
10