Debian Codegraph @

clang/test/DebugInfo/CXX/hotpatch-arm.cpp

raw
1 // REQUIRES: arm-registered-target
2 ///
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>&1
7 ///
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 -- %s
11 // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
12 // HOTPATCH: S_COMPILE3 [size = [[#]]]
13 // HOTPATCH: flags = hot patchable
14 //
15 // RUN: %clang_cl --target=arm-pc-windows-msvc /c -o %t.obj -- %s
16 // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
17
18 int main() {
19 return 0;
20 }