38 lines · plain
1# REQUIRES: x86-registered-target2# Test that there is a sane default CIE version.3# RUN: %clang -cc1as -triple i386-apple-darwin -filetype obj %s -o %t4# RUN: llvm-objdump --dwarf=frames %t | FileCheck %s5# CHECK: .debug_frame contents:6# CHECK: CIE7# CHECK: Version: 18 .section __TEXT,__text,regular,pure_instructions9 .globl _f10 .p2align 4, 0x9011_f: ## @f12Lfunc_begin0:13 .file 1 "test.c"14 .loc 1 1 0 ## test.c:1:015 .cfi_startproc16## BB#0: ## %entry17 pushl %ebp18Ltmp0:19 .cfi_def_cfa_offset 820Ltmp1:21 .cfi_offset %ebp, -822 movl %esp, %ebp23Ltmp2:24 .cfi_def_cfa_register %ebp25Ltmp3:26 .loc 1 1 11 prologue_end ## test.c:1:1127 popl %ebp28 retl29Ltmp4:30Lfunc_end0:31 .cfi_endproc32 .cfi_sections .debug_frame33 34.subsections_via_symbols35 .section __DWARF,__debug_line,regular,debug36Lsection_line:37Lline_table_start0:38