[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-hotpatch.cpp
blobe005c9c5ee4899151ddfc458119da020be9bc556
1 // REQUIRES: x86-registered-target
2 ///
3 // RUN: %clang_cl --target=x86_64-windows-msvc /c /hotpatch /Z7 -o %t.obj -- %s
4 // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
5 // HOTPATCH: S_COMPILE3 [size = [[#]]]
6 // HOTPATCH: flags = hot patchable
7 ///
8 // RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -o %t.obj -- %s
9 // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=NO-HOTPATCH
10 // NO-HOTPATCH-NOT: flags = hot patchable
11 ///
12 // RUN: %clang_cl --target=x86_64-windows-msvc /hotpatch -### -- %s 2>&1 \
13 // RUN: | FileCheck %s --check-prefix=FUNCTIONPADMIN
14 // FUNCTIONPADMIN: clang{{.*}}
15 // FUNCTIONPADMIN: {{link[^"]*"}}
16 // FUNCTIONPADMIN: -functionpadmin
18 int main() {
19 return 0;