1// RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s 2// RUN: %clang_cc1 -dwarf-version=4 -emit-llvm -debug-info-kind=limited -w -triple x86_64-apple-darwin10 %s -o - | FileCheck %s 3 4__attribute__((objc_root_class)) 5@interface Root 6@end 7 8@implementation Root 9- (int)getInt __attribute__((objc_direct)) { 10 return 42; 11} 12@end 13 14// Test that objc_direct methods are always (even in DWARF < 5) emitted 15// as members of their containing class. 16 17// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Root", 18// CHECK-SAME: elements: ![[MEMBERS:[0-9]+]], 19// CHECK-SAME: runtimeLang: DW_LANG_ObjC) 20// CHECK: ![[MEMBERS]] = !{![[GETTER:[0-9]+]]} 21// CHECK: ![[GETTER]] = !DISubprogram(name: "-[Root getInt]", 22