xref: /llvm-project/clang/test/CodeGenCXX/debug-info-hotpatch.cpp (revision 4dfa68e483137cc13eb9027c0dd834ede19f2fd4)
15af2433eSAlexandre Ganea // REQUIRES: x86-registered-target
25af2433eSAlexandre Ganea ///
35af2433eSAlexandre Ganea // RUN: %clang_cl --target=x86_64-windows-msvc /c /hotpatch /Z7 -o %t.obj -- %s
45af2433eSAlexandre Ganea // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
55af2433eSAlexandre Ganea // HOTPATCH: S_COMPILE3 [size = [[#]]]
65af2433eSAlexandre Ganea // HOTPATCH: flags = hot patchable
75af2433eSAlexandre Ganea ///
85af2433eSAlexandre Ganea // RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -o %t.obj -- %s
95af2433eSAlexandre Ganea // RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=NO-HOTPATCH
105af2433eSAlexandre Ganea // NO-HOTPATCH-NOT: flags = hot patchable
115af2433eSAlexandre Ganea ///
125af2433eSAlexandre Ganea // RUN: %clang_cl --target=x86_64-windows-msvc /hotpatch -### -- %s 2>&1 \
135af2433eSAlexandre Ganea // RUN:    | FileCheck %s --check-prefix=FUNCTIONPADMIN
145af2433eSAlexandre Ganea // FUNCTIONPADMIN: clang{{.*}}
15*4dfa68e4SZahira Ammarguellat // FUNCTIONPADMIN: {{link[^"]*"}}
165af2433eSAlexandre Ganea // FUNCTIONPADMIN: -functionpadmin
175af2433eSAlexandre Ganea 
main()185af2433eSAlexandre Ganea int main() {
195af2433eSAlexandre Ganea   return 0;
205af2433eSAlexandre Ganea }
21