summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ExecControl/StepIn/Inputs/aarch64_thunk.cc
blob: 02f3bef32a59a3b906a818d89ba84651630a4cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern "C" int __attribute__((naked)) __AArch64ADRPThunk_step_here() {
    asm (
      "adrp x16, step_here\n"
      "add x16, x16, :lo12:step_here\n"
      "br x16"
    );
}

extern "C" __attribute__((used)) int step_here() {
    return 47;
}

int main() {
  return __AArch64ADRPThunk_step_here();
}