1 // REQUIRES: arm-registered-target
3 /// Check that using /hotpatch doesn't generate an error.
4 /// Binaries are always hotpatchable on ARM/ARM64.
6 // RUN: %clang_cl --target=arm-pc-windows-msvc /c /hotpatch /Z7 -- %s 2>&1
8 /// Ensure that we set the hotpatchable flag in the debug information.
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
15 /// Unfortunately we need /Z7, Clang does not systematically generate S_COMPILE3.
17 // RUN: %clang_cl --target=arm-pc-windows-msvc /c -o %t.obj -- %s
18 // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=NO-HOTPATCH
19 // NO-HOTPATCH-NOT: flags = hot patchable