1# REQUIRES: x86-registered-target
2# Test that there is a sane default CIE version.
3# RUN: %clang -cc1as -triple i386-apple-darwin -filetype obj %s -o %t
4# RUN: llvm-objdump --dwarf=frames %t | FileCheck %s
5# CHECK: .debug_frame contents:
6# CHECK: CIE
7# CHECK: Version:               1
8	.section	__TEXT,__text,regular,pure_instructions
9	.globl	_f
10	.p2align	4, 0x90
11_f:                                     ## @f
12Lfunc_begin0:
13	.file	1 "test.c"
14	.loc	1 1 0                   ## test.c:1:0
15	.cfi_startproc
16## BB#0:                                ## %entry
17	pushl	%ebp
18Ltmp0:
19	.cfi_def_cfa_offset 8
20Ltmp1:
21	.cfi_offset %ebp, -8
22	movl	%esp, %ebp
23Ltmp2:
24	.cfi_def_cfa_register %ebp
25Ltmp3:
26	.loc	1 1 11 prologue_end     ## test.c:1:11
27	popl	%ebp
28	retl
29Ltmp4:
30Lfunc_end0:
31	.cfi_endproc
32	.cfi_sections .debug_frame
33
34.subsections_via_symbols
35	.section	__DWARF,__debug_line,regular,debug
36Lsection_line:
37Lline_table_start0:
38