[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / femit-dwarf-unwind.s
blob41951352eeafdfb752b68a1e143b0cd2b25f6903
1 // REQUIRES: x86-registered-target
3 // RUN: rm -rf %t; mkdir %t
4 // RUN: %clang -target x86_64-apple-macos11.0 -c %s -o %t/x86_64.o -femit-compact-unwind-non-canonical
5 // RUN: %clang -target x86_64-apple-macos11.0 -femit-dwarf-unwind=no-compact-unwind -c %s -o %t/x86_64-no-dwarf.o -femit-compact-unwind-non-canonical
6 // RUN: llvm-objdump --macho --dwarf=frames %t/x86_64.o | FileCheck %s --check-prefix=WITH-FDE
7 // RUN: llvm-objdump --macho --dwarf=frames %t/x86_64-no-dwarf.o | FileCheck %s --check-prefix=NO-FDE
9 // WITH-FDE: FDE
10 // NO-FDE-NOT: FDE
12 .text
13 _foo:
14 .cfi_startproc
15 .cfi_def_cfa_offset 8
16 ret
17 .cfi_endproc