1*9880d681SAndroid Build Coastguard Worker; REQUIRES: object-emission 2*9880d681SAndroid Build Coastguard Worker; XFAIL: hexagon 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t 5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s 6*9880d681SAndroid Build Coastguard Worker; CHECK: DW_TAG_ptr_to_member_type 7*9880d681SAndroid Build Coastguard Worker; CHECK: DW_TAG_ptr_to_member_type 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) 9*9880d681SAndroid Build Coastguard Worker; CHECK: [[TYPE]]: DW_TAG_subroutine_type 10*9880d681SAndroid Build Coastguard Worker; CHECK: DW_TAG_formal_parameter 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: DW_AT_type 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: DW_AT_artificial [DW_FORM_flag 13*9880d681SAndroid Build Coastguard Worker; IR generated from clang -g with the following source: 14*9880d681SAndroid Build Coastguard Worker; struct S { 15*9880d681SAndroid Build Coastguard Worker; }; 16*9880d681SAndroid Build Coastguard Worker; 17*9880d681SAndroid Build Coastguard Worker; int S::*x = 0; 18*9880d681SAndroid Build Coastguard Worker; void (S::*y)(int) = 0; 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker@x = global i64 -1, align 8 21*9880d681SAndroid Build Coastguard Worker@y = global { i64, i64 } zeroinitializer, align 8 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 24*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!16} 25*9880d681SAndroid Build Coastguard Worker 26*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 ", isOptimized: false, emissionKind: FullDebug, file: !15, enums: !1, retainedTypes: !1, globals: !3, imports: !1) 27*9880d681SAndroid Build Coastguard Worker!1 = !{} 28*9880d681SAndroid Build Coastguard Worker!3 = !{!5, !10} 29*9880d681SAndroid Build Coastguard Worker!5 = !DIGlobalVariable(name: "x", line: 4, isLocal: false, isDefinition: true, scope: null, file: !6, type: !7, variable: i64* @x) 30*9880d681SAndroid Build Coastguard Worker!6 = !DIFile(filename: "simple.cpp", directory: "/home/blaikie/Development/scratch") 31*9880d681SAndroid Build Coastguard Worker!7 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !8, extraData: !9) 32*9880d681SAndroid Build Coastguard Worker!8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 33*9880d681SAndroid Build Coastguard Worker!9 = !DICompositeType(tag: DW_TAG_structure_type, name: "S", line: 1, size: 8, align: 8, file: !15, elements: !1) 34*9880d681SAndroid Build Coastguard Worker!10 = !DIGlobalVariable(name: "y", line: 5, isLocal: false, isDefinition: true, scope: null, file: !6, type: !11, variable: { i64, i64 }* @y) 35*9880d681SAndroid Build Coastguard Worker!11 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !12, extraData: !9) 36*9880d681SAndroid Build Coastguard Worker!12 = !DISubroutineType(types: !13) 37*9880d681SAndroid Build Coastguard Worker!13 = !{null, !14, !8} 38*9880d681SAndroid Build Coastguard Worker!14 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !9) 39*9880d681SAndroid Build Coastguard Worker!15 = !DIFile(filename: "simple.cpp", directory: "/home/blaikie/Development/scratch") 40*9880d681SAndroid Build Coastguard Worker!16 = !{i32 1, !"Debug Info Version", i32 3} 41