summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-08-22 22:30:34 +0000
committerAdrian Prantl <aprantl@apple.com>2016-08-22 22:30:34 +0000
commit8ff4c08e34c6bb556fa60de7094f68c321d8f5f8 (patch)
treefa155b2fe63b38bf814c507d0f030a96aca57703
parent12921aaa7b7741a48329dce055149347b8c9dd0d (diff)
downloadbcm5719-llvm-8ff4c08e34c6bb556fa60de7094f68c321d8f5f8.tar.gz
bcm5719-llvm-8ff4c08e34c6bb556fa60de7094f68c321d8f5f8.zip
Add the second half of the testcase I should have added in 279485.
llvm-svn: 279489
-rw-r--r--clang/test/Modules/ModuleModuleDebugInfo.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Modules/ModuleModuleDebugInfo.cpp b/clang/test/Modules/ModuleModuleDebugInfo.cpp
new file mode 100644
index 00000000000..abc4bfd56b1
--- /dev/null
+++ b/clang/test/Modules/ModuleModuleDebugInfo.cpp
@@ -0,0 +1,18 @@
+// RUN: rm -rf %t
+
+// RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \
+// RUN: -dwarf-ext-refs -fmodules \
+// RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \
+// RUN: -triple %itanium_abi_triple \
+// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o - \
+// RUN: | FileCheck %s
+
+#include "DebugNestedB.h"
+AF af; // This type is not anchored in the module.
+
+// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "AF",
+// CHECK-SAME: baseType: ![[AF:.*]])
+
+// CHECK: ![[AF]] = {{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "A<F>",
+// CHECK-SAME: elements:
+
OpenPOWER on IntegriCloud