summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-10-01 16:57:02 +0000
committerAdrian Prantl <aprantl@apple.com>2015-10-01 16:57:02 +0000
commit42ce2d3ba335fe1a3213f3538f22fc73e7ec4621 (patch)
tree6c63226a685cf30412f29e9b5e328eaedb80f137 /clang/test
parent447e35701ac3dc05474c1f74bf121faf2abd652a (diff)
downloadbcm5719-llvm-42ce2d3ba335fe1a3213f3538f22fc73e7ec4621.tar.gz
bcm5719-llvm-42ce2d3ba335fe1a3213f3538f22fc73e7ec4621.zip
Module debugging: Also emit Objective-C interfaces forward declarations
in their module scope when building a clang module. llvm-svn: 249031
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Modules/Inputs/DebugObjC.h2
-rw-r--r--clang/test/Modules/ModuleDebugInfo.m7
2 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/Modules/Inputs/DebugObjC.h b/clang/test/Modules/Inputs/DebugObjC.h
index 8802f4b7b06..a44a362c928 100644
--- a/clang/test/Modules/Inputs/DebugObjC.h
+++ b/clang/test/Modules/Inputs/DebugObjC.h
@@ -1,3 +1,5 @@
+@class FwdDecl;
+
@interface ObjCClass {
int ivar;
}
diff --git a/clang/test/Modules/ModuleDebugInfo.m b/clang/test/Modules/ModuleDebugInfo.m
index 8fac5f41f0f..5cfeb397f90 100644
--- a/clang/test/Modules/ModuleDebugInfo.m
+++ b/clang/test/Modules/ModuleDebugInfo.m
@@ -20,6 +20,8 @@
// CHECK: distinct !DICompileUnit(language: DW_LANG_ObjC
// CHECK-SAME: isOptimized: false,
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
+// CHECK-SAME: name: "FwdDecl",
+// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME: name: "ObjCClass",
// CHECK: !DIObjCProperty(name: "property",
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "ivar"
@@ -28,6 +30,9 @@
// CHECK: !DISubprogram(name: "-[ categoryMethod]"
// MODULE-CHECK: !DICompositeType(tag: DW_TAG_structure_type,
-// MODULE-CHECK-SAME: name: "ObjCClass",
+// MODULE-CHECK-SAME: name: "FwdDecl",
// MODULE-CHECK-SAME: scope: ![[MODULE:[0-9]+]],
// MODULE-CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC"
+// MODULE-CHECK: !DICompositeType(tag: DW_TAG_structure_type,
+// MODULE-CHECK-SAME: name: "ObjCClass",
+// MODULE-CHECK-SAME: scope: ![[MODULE]],
OpenPOWER on IntegriCloud