1// BOLT test case
2
3#include <stdio.h>
4
5typedef unsigned long long (*FP)();
6
7extern FP getCallback();
8extern FP getCallback2();
9extern FP getCallback3();
10
11int main() {
12 printf(format: "Case 1: Result is: %llX\n", (*getCallback())());
13 printf(format: "Case 2: Result is: %llX\n", (*getCallback2())());
14 printf(format: "Case 3: Result is: %llX\n", (*getCallback3())());
15 return 0;
16}
17

source code of bolt/test/runtime/X86/Inputs/internalcall-main.c