brintos

brintos / llvm-project-archived public Read only

0
0
Text · 709 B · e31c762 Raw
21 lines · cpp
1// REQUIRES: arm-registered-target2///3/// Check that using /hotpatch doesn't generate an error.4/// Binaries are always hotpatchable on ARM/ARM64.5///6// RUN: %clang_cl --target=arm-pc-windows-msvc /c /hotpatch /Z7 -- %s 2>&17///8/// Ensure that we set the hotpatchable flag in the debug information.9///10// RUN: %clang_cl --target=arm-pc-windows-msvc /c /Z7 -o %t.obj -- %s11// RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH12// HOTPATCH: S_COMPILE3 [size = [[#]]]13// HOTPATCH: flags = hot patchable14//15// RUN: %clang_cl --target=arm-pc-windows-msvc /c -o %t.obj -- %s16// RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH17 18int main() {19  return 0;20}21