1; RUN: llc -mtriple=thumbv7-apple-ios -O0 -filetype=obj -o %t.o %s 2; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s 3; 4; Generated from: 5; struct { 6; char c; 7; int : 4; 8; int reserved : 28; 9; } a; 10; 11; CHECK: DW_TAG_member 12; CHECK: DW_AT_name {{.*}} "reserved" 13; CHECK: DW_AT_byte_size {{.*}} (0x04) 14; CHECK: DW_AT_bit_size {{.*}} (0x1c) 15; CHECK: DW_AT_bit_offset {{.*}} (-8) 16; CHECK: DW_AT_data_member_location {{.*}} (DW_OP_plus_uconst 0x0) 17 18%struct.anon = type { i8, [5 x i8] } 19 20@a = common global %struct.anon zeroinitializer, align 1, !dbg !0 21 22!llvm.dbg.cu = !{!2} 23!llvm.module.flags = !{!12, !13, !14, !15, !16} 24!llvm.ident = !{!17} 25 26!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 27!1 = !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 5, type: !6, isLocal: false, isDefinition: true) 28!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 3.7.0 (trunk 240548) (llvm/trunk 240554)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !5, imports: !4) 29!3 = !DIFile(filename: "test.i", directory: "/") 30!4 = !{} 31!5 = !{!0} 32!6 = !DICompositeType(tag: DW_TAG_structure_type, file: !3, line: 1, size: 48, align: 8, elements: !7) 33!7 = !{!8, !10} 34!8 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !6, file: !3, line: 2, baseType: !9, size: 8, align: 8) 35!9 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) 36!10 = !DIDerivedType(tag: DW_TAG_member, name: "reserved", scope: !6, file: !3, line: 4, baseType: !11, size: 28, align: 32, offset: 12, flags: DIFlagBitField) 37!11 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 38!12 = !{i32 2, !"Dwarf Version", i32 2} 39!13 = !{i32 2, !"Debug Info Version", i32 3} 40!14 = !{i32 1, !"wchar_size", i32 4} 41!15 = !{i32 1, !"min_enum_size", i32 4} 42!16 = !{i32 1, !"PIC Level", i32 2} 43!17 = !{!"clang version 3.7.0 (trunk 240548) (llvm/trunk 240554)"} 44 45