xref: /llvm-project/lldb/test/Shell/ExecControl/StepIn/Inputs/aarch64_thunk.cc (revision b22a6f1eba8e27b2a21bf6b96a3bd349230cb80a)

__AArch64ADRPThunk_step_here()1 extern "C" int __attribute__((naked)) __AArch64ADRPThunk_step_here() {
2     asm (
3       "adrp x16, step_here\n"
4       "add x16, x16, :lo12:step_here\n"
5       "br x16"
6     );
7 }
8 
step_here()9 extern "C" __attribute__((used)) int step_here() {
10     return 47;
11 }
12 
main()13 int main() {
14   return __AArch64ADRPThunk_step_here();
15 }
16